Opened 19 years ago

Closed 18 years ago

#760 closed defect (wontfix)

Error reason not seen when 500 template is missing

Reported by: wojtek@… Owned by: turkey
Component: contrib.admin Version:
Severity: normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

When DEBUG = False (production environment) and an error happens, and the 500 template is not provided - one gets a traceback about the template not existing, but does not get a traceback for the exception that caused the actual failure.

Change History (11)

comment:1 by rjwittams, 19 years ago

I don't think that by default with errors off we should reveal internal implementation details.

One solution for this error template situation would be "last chance" template loader. This would just respond to the 400, 500, and template_debug template names, and would be last in the list of loaders ( maybe appended automatically to this list). It would load extremely simple templates from strings, meaning it only relies on python module loading.

comment:2 by Adrian Holovaty, 19 years ago

rjwittams -- That solution sounds good.

comment:3 by anonymous, 19 years ago

Resolution: fixed
Status: newclosed

comment:4 by anonymous, 19 years ago

Resolution: fixed
Status: closedreopened

comment:5 by anonymous, 19 years ago

Resolution: wontfix
Status: reopenedclosed

comment:6 by anonymous, 19 years ago

Resolution: wontfix
Status: closedreopened

comment:7 by anonymous, 19 years ago

Owner: changed from Adrian Holovaty to turkey
Status: reopenednew

comment:8 by Jacob, 19 years ago

Resolution: fixed
Status: newclosed

Hello Mr. Anonymous User!

This thing isn't a toy; please stop using it as one.

comment:9 by hugo, 19 years ago

Resolution: fixed
Status: closedreopened

Actually this ticket was open before Mr. Anonymous started to play, so maybe we should keep it open? ;-)

comment:10 by Chris Beaven, 18 years ago

Triage Stage: UnreviewedAccepted

comment:11 by Jacob, 18 years ago

Resolution: wontfix
Status: reopenedclosed

Django's not going to ever include a default 404 or 500 template. If we do, people won't be forced to create their own, and an error will quickly reveal what software your server's running (think "Application Error (Rails)").

However, [4612] adds a comment to the line that will fail so that at least people will get a slightly better idea of where to go next.

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