﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
3948	template parse parse error isn't readable	Philippe Raoult	Adrian Holovaty	"I'm fooling around django trying to do some rapid prototyping and I naively typed the following in my template:
{{ object.other_related_class_set.count() }} 

This error is valid in the sense that my template code is bogus, but I had to test line by line to figure out what was wrong. It would be great if the exeption contained the offending line or token!

Traceback included, ask for more details if you need but this is pretty easy to reproduce I think

{{{

Traceback (most recent call last):
File ""/var/lib/python-support/python2.4/django/core/handlers/base.py"" in get_response
  74. response = callback(request, *callback_args, **callback_kwargs)
File ""/home/philippe/dev/LLR/djprototype/../djprototype/marques/views.py"" in marque_detail
  13. mytemplate = loader.get_template(""marques/marque_detail.html"")
File ""/var/lib/python-support/python2.4/django/template/loader.py"" in get_template
  79. return get_template_from_string(*find_template_source(template_name))
File ""/var/lib/python-support/python2.4/django/template/loader.py"" in get_template_from_string
  86. return Template(source, origin)
File ""/var/lib/python-support/python2.4/django/template/__init__.py"" in __init__
  146. self.nodelist = compile_string(template_string, origin)
File ""/var/lib/python-support/python2.4/django/template/__init__.py"" in compile_string
  161. return parser.parse()
File ""/var/lib/python-support/python2.4/django/template/__init__.py"" in parse
  239. filter_expression = self.compile_filter(token.contents)
File ""/var/lib/python-support/python2.4/django/template/__init__.py"" in compile_filter
  323. return FilterExpression(token, self)
File ""/var/lib/python-support/python2.4/django/template/__init__.py"" in __init__
  543. raise TemplateSyntaxError, ""Could not parse the remainder: %s"" % token[upto:]

  TemplateSyntaxError at /marques/details/1/
  Could not parse the remainder: ()

}}}
"		new	Template system	0.96					Unreviewed	0	0	0	0	0	0
