Overriding mod_python's default 500 error when "wonky" Django config problems strike

12 views
Skip to first unread message

palewire

unread,
Oct 6, 2010, 7:53:54 PM10/6/10
to Django users
When Django is up, it handles 500 errors. When Django is screwed,
mod_python will throw a bare bones "Internal Server Error." This is
described well in the docs at the following link:

http://docs.djangoproject.com/en/dev/howto/deployment/modpython/#error-handling

My question: Is there a way to override that "Internal Server Error"
page without overriding all Django 500 pages? The only way I can find
to override it is by screwing around with Apache's ErrorDocument
setting, which will then override all 500s, whether handled by Django
or Apache.

Is there a way to negotiate that so Django handles Django errors, but
still customize the default message? I would love to know.

Thanks in advance,

Ben.
Reply all
Reply to author
Forward
0 new messages