Code

Opened 8 years ago

Closed 8 years ago

Last modified 8 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
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: UI/UX:

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 (0)

Change History (3)

comment:1 Changed 8 years ago by adrian

  • Status changed from new to assigned

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

comment:2 Changed 8 years ago 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.

comment:3 Changed 8 years ago by adrian

  • Resolution set to fixed
  • Status changed from assigned to closed

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

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.