Apache's 500 error overriding Django 500 view

27 views
Skip to first unread message

Brandon Taylor

unread,
Nov 6, 2009, 3:34:30 PM11/6/09
to Django users
Hi everyone,

I'm doing my development on Ubuntu 9.1, Python 2.6.4, Apache2/mod_wsgi
and Django 1.1.1. When setting DEBUG = False, and creating a view that
I know will raise an exception, Apache's 500 error will show instead
of the Django 500 view.

I have created the 500.html template in my root templates directory
I have set debug = False
I have even set the "handler500" URL to point to my
'app.views.my_server_error_500'

and the Apache error screen will still show up.

Anyone have any idea why?

TIA,
Brandon

Maksymus007

unread,
Nov 6, 2009, 4:05:02 PM11/6/09
to django...@googlegroups.com

not all exceptions are handled by django - for example syntax errors.
What kind of errors is yours?

Bayuadji

unread,
Nov 7, 2009, 9:24:45 PM11/7/09
to django...@googlegroups.com
Hi,

I've experienced when there's an error in our templatecontext
processing, so instead our 500.html our application using apache
500.html

perhaps you should check your log, to see there's an exception.

-djibon-
--
--------------------------------------------------------------
http://www.tumbletooth.org
my linkedin profile : http://www.linkedin.com/in/bayuadji
--------------------------------------------------------------
Reply all
Reply to author
Forward
0 new messages