Opened 19 years ago
Closed 18 years ago
#2298 closed defect (duplicate)
Custom template tag files with errors aren't reported as such.
| Reported by: | Owned by: | nobody | |
|---|---|---|---|
| Component: | Template system | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | tyson@… | Triage Stage: | Accepted |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
If a custom template tag file (i.e. "project/apps/app/templatetags/my_tags.py") has errors, they aren't reported anywhere. The module is simply not loaded and then we get a TemplateSyntaxError when we try to do:
{% load my_tags.py %}
It would be nice if we could somehow get the error that occurred in the template tag file instead of a TemplateSyntaxError.
Change History (3)
comment:1 by , 19 years ago
| Triage Stage: | Unreviewed → Accepted |
|---|
comment:2 by , 18 years ago
Closing in favor of #3349, which is apparently being actively worked on.
comment:3 by , 18 years ago
| Resolution: | → duplicate |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Well, all template filters and tags should fail silently.