Ask Your Question
2

I can't see custom 500.html error page

asked 2012-05-19 17:01:00 -0500

zaf gravatar image zaf
554 8 8 26

updated 2012-05-19 21:55:40 -0500

Evgeny gravatar image Evgeny flag of Chile
11009 50 84 182
http://askbot.org/

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.

delete close flag offensive retag edit

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.

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 ( 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 ( 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 ( 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 ( 2012-05-20 17:57:31 -0500 )edit

Be the first one to answer this question!

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Reliable Askbot Hosting

Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.

create your Q&A site
30 days free trial

Question tools

Follow

subscribe to rss feed

Stats

Asked: 2012-05-19 17:01:00 -0500

Seen: 170 times

Last updated: May 19 '12