Opened 8 years ago
Closed 8 years ago
#28698 closed Cleanup/optimization (duplicate)
Show template origin in TemplateSyntaxError
Description ¶
Example of current error message:
django.template.exceptions.TemplateSyntaxError: Invalid block tag on line 8: 'trans', expected 'endblock'. Did you forget to register or load this tag?
With my patch:
django.template.exceptions.TemplateSyntaxError: app/yourtemplate.html: Invalid block tag on line 8: 'trans', expected 'endblock'. Did you forget to register or load this tag?
I'm willing to contribute tests and documentation if the general idea is accepted.
Note:
See TracTickets
for help on using tickets.
Pull request: https://github.com/django/django/pull/9226