Opened 18 years ago

Closed 18 years ago

Last modified 18 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

Description

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 by Adrian Holovaty, 18 years ago

Status: newassigned

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

comment:2 by Adrian Holovaty, 18 years ago

(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 by Adrian Holovaty, 18 years ago

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