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.
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 siteAsked: 2012-05-19 17:01:00 -0500
Seen: 173 times
Last updated: May 19 '12
Massive 404 errors in GWT linked from feeds from other sites
feeds/rss path not appended to askboturl
AJAX responses sometimes don't work with 500 error due to exception
VariableDoesNotExist 500.jinja.html b/c no RequestContext
Some permalinks to specific question revisions go to 404
Copyright Askbot, 2010-2011. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.
What do you do to see this? I've tried inserting
Evgeny ( 2012-05-20 13:46:21 -0500 )editraise 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
zaf ( 2012-05-20 14:16:50 -0500 )editI tried also with
zaf ( 2012-05-20 17:51:38 -0500 )editraise 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?
Evgeny ( 2012-05-20 17:55:38 -0500 )editWhat 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