Electronics & Programming


Open Source electronics development and programming

  • You are not logged in.

#1 Nov. 21, 2005 15:32:35

Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Server Error pages

My view code for my calendar app can detect when a user supplies a bad
year, month or day, but I have no idea how to get Django to display an
application specific "500" page. I put a 500.html in my templates
subdir for the calendar app, but it is not found when a raise an
exception. It does look elsewhere for a 500 template, but that file
doesn't exist in my setup.

(In case you are wondering, I set DEBUG = False in my settings.py

How is this supposed to work? I saw a mention suggesting changing
urls.py and also noticed HTTPResponseServerError, but I haven't found
an actual example of application specific error handling.

Once I have this working, is there any way for my application to
override or bypass the global DEBUG setting so that these handled cases
do not yield a traceback?


Board footer

Moderator control

Enjoy the 27th of April

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support