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).

  1. originally the 500 page showed a TemplateSyntaxError when a TemplateDoesNotExist error was being fired (due to an improper wrapping in debug.py).
  2. 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)

extends_template.diff (1.8 KB ) - added by Jared Forsyth 15 years ago.

Download all attachments as: .zip

Change History (2)

by Jared Forsyth, 15 years ago

Attachment: extends_template.diff added

comment:1 by Karen Tracey, 15 years ago

Resolution: duplicate
Status: newclosed

Sounds like #12787

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