Opened 10 years ago

Closed 10 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
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: UI/UX:


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 Changed 10 years ago by Moof <moof@…>

  • Cc moof@… added

comment:2 Changed 10 years ago by adrian

  • Resolution set to wontfix
  • Status changed from new to closed

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