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.
Comments
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.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
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.htmlCan 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?
What do you mean normal error 500 page? The apache one or the /skins/default/templates/500.html one?