Improved template error messages

2 views
Skip to first unread message

Robert Wittams

unread,
Oct 6, 2005, 9:19:21 PM10/6/05
to django-d...@googlegroups.com
In my new admin branch, I've just committed a change that makes
debugging template errors a lot easier.
Here is an example of the error messages now:

TemplateSyntaxError?: Unclosed tag 'if' starting at
/usr/lib/python2.4/site-packages/django/conf/admin_templates/admin_submit_line.html,
line 6. Looking for one of: else, endif

The changeset is at
http://code.djangoproject.com/changeset/796

It may be pretty easy to port this over to the trunk, if the changes to

django/core/template_loader.py
django/core/template_file.py
django/core/template.py

are extracted.

Adrian Holovaty

unread,
Oct 7, 2005, 9:50:16 AM10/7/05
to django-d...@googlegroups.com
On 10/6/05, Robert Wittams <rob...@wittams.com> wrote:
> In my new admin branch, I've just committed a change that makes
> debugging template errors a lot easier.

Hey Robert,

Please keep your branch changes limited to new-admin stuff. This is
exactly the kind of thing that will make it extra difficult to merge
your changes into the Django trunk, because we don't necessarily want
to add this functionality.

Thanks!

Adrian

--
Adrian Holovaty
holovaty.com | djangoproject.com | chicagocrime.org
Reply all
Reply to author
Forward
0 new messages