I can't see custom 500.html error page

I see in /skins/default/templates/ there are among others 404.html, 404.jinja.html, 500.html, 500.jinja.html files. The 404 and 500 files simply include the jinja ones.

When I have a page not found 404 error, I see the custom page, but when I have 500 server error, I don't see any custom page, just an ugly error message.

Any ideas why this would happen? I run application normally, through apache, not through manage.py runserver. Also, in settings.py file I have not set TEMPLATE_DIRS and ASKBOT_EXTRA_SKINS_DIR, don't know if it's relevant, I just mention.

zaf's avatar
asked 2012-05-19 17:01:00 -0500
Evgeny's avatar
updated 2012-05-19 21:55:40 -0500
edit flag offensive 0 remove flag close merge delete


What do you do to see this? I've tried inserting raise Exception() in one of the views and got the normal error 500 page.

Evgeny's avatar Evgeny (2012-05-20 13:46:21 -0500) edit

By normal you mean the one you ve written in file 500.html? I reproduce it because I know I have a bug in my search box and when I search something (unicode) I get an internal server error message, which is different from the one defined in 500.html

zaf's avatar zaf (2012-05-20 14:16:50 -0500) edit

I tried also with raise Exception('message') and I had the same result. I get the default Apache message, instead of the content of /skins/default/templates/500.html

zaf's avatar zaf (2012-05-20 17:51:38 -0500) edit

Can you tell where did you add the exception? I'd like to try it out. With the django's runserver I do see the normal error 500 page, do you?

Evgeny's avatar Evgeny (2012-05-20 17:55:38 -0500) edit

What do you mean normal error 500 page? The apache one or the /skins/default/templates/500.html one?

zaf's avatar zaf (2012-05-20 17:57:31 -0500) edit
add a comment see more comments