Django

Code

Ticket #892 (closed: fixed)

Opened 3 years ago

Last modified 2 years ago

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

Reported by: David Ascher <david.ascher@gmail.com> Assigned to: adrian
Milestone: Component: Template system
Version: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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)

Attachments

Change History

11/24/05 14:27:08 changed by adrian

  • status changed from new to assigned.

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

11/24/05 15:14:43 changed by adrian

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

11/24/05 15:15:52 changed by adrian

  • status changed from assigned to closed.
  • resolution set to fixed.

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


Add/Change #892 (Make TemplateNotFound pages look like the 404's that come of URLConf)




Change Properties
Action