Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#892 closed defect (fixed)

Make TemplateNotFound pages look like the 404's that come of URLConf

Reported by: David Ascher <david.ascher@…> Owned by: Adrian Holovaty
Component: Template system Version:
Severity: minor Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


I really like the debugging info that the 404 pages give. When a template isn't found, it _feels_ like all I need to know is:

1) what template django was looking for
2) what directories it looked in.
3) ideally, whether those directories _exist_ or not (that would be a good indication of a bug)

Change History (3)

comment:1 Changed 13 years ago by Adrian Holovaty

Status: newassigned

Great idea. I'll play around with an implementation.

comment:2 Changed 13 years ago by Adrian Holovaty

(In [1399]) Added a get_template_sources generator function to filesystem and app_directories template loaders, so template-loader debugger can hook into it. Refs #892.

comment:3 Changed 13 years ago by Adrian Holovaty

Resolution: fixed
Status: assignedclosed

(In [1400]) Fixed #892 -- TemplateDoesNotExist errors now get a 'Template-loader postmortem' section on the pretty debug page. Thanks for the idea, David Ascher

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