Opened 14 years ago
Closed 14 years ago
#13808 closed (worksforme)
Setting handler404 and/or handler500 in main urls.py does not work.
Reported by: | Josh Ourisman | Owned by: | nobody |
---|---|---|---|
Component: | Core (Other) | Version: | 1.2 |
Severity: | Keywords: | urls error handler | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Setting handler404 or handler500 in the projects main urls.py does not appear to work. I've tried this on 1.2, 1.2.1 and trunk (currently r13370) using both strings and callables as the value, and simply cannot define my own handers for error messages. No matter what I do it still uses the defaults. I have not yet managed to track down the cause.
Note:
See TracTickets
for help on using tickets.
I do exactly this in one of my projects so I'm not sure how to diagnose what issue you are seeing, but I have confirmed it works for me on 1.1 and current trunk. For reference my project's main urls.py file is structured like so: