Opened 15 years ago
Closed 15 years ago
#13049 closed (duplicate)
debug 500 page incorrectly reports "extends" TemplateDoesNotExist errors.
Reported by: | Jared Forsyth | Owned by: | Jared Forsyth |
---|---|---|---|
Component: | Template system | Version: | dev |
Severity: | Keywords: | template, error, debug, templatedoesnotexist, templatesyntaxerror | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
There are two parts to this solution (because there are two things preventing correct report of errors).
- originally the 500 page showed a TemplateSyntaxError when a TemplateDoesNotExist error was being fired (due to an improper wrapping in debug.py).
- once that was fixed, the ExtendsNode assumed that if a TemplateDoesNotExist error was thrown while getting its parent template, its parent could not be found. As you can imagine, this is not the case if the parent template extends (or includes) a template that does not exist.
Attachments (1)
Change History (2)
by , 15 years ago
Attachment: | extends_template.diff added |
---|
comment:1 by , 15 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Sounds like #12787