Opened 19 years ago

Closed 19 years ago

#190 closed defect (wontfix)

Add which template a syntax error is occurring in when you raise TemplateSyntaxErrors

Reported by: Moof <moof@…> Owned by: Adrian Holovaty
Component: Template system Version:
Severity: normal Keywords:
Cc: moof@… Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Right now, if there's a TemplateSyntaxError, django throws an exception telling you what's missing, or what's gone wrong.

It would be nice for Django to tell me in which of the various nested templates I'm using on any given URL the syntax error occurs. Even better if you could manage a line number.

Change History (2)

comment:1 by Moof <moof@…>, 19 years ago

Cc: moof@… added

comment:2 by Adrian Holovaty, 19 years ago

Resolution: wontfix
Status: newclosed

Unfortunately this isn't possible, because the template parsing system is decoupled from the part that loads the templates.

We made this conscious design decision when we wrote the template system, to reduce its complexity.

Note: See TracTickets for help on using tickets.
Back to Top