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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
zaf's avatar
512
zaf
asked 12 years ago
Evgeny's avatar
13.2k
Evgeny
updated 12 years ago

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's avatar Evgeny (12 years ago)

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 (12 years ago)

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 (12 years ago)

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 (12 years ago)

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

zaf's avatar zaf (12 years ago)
see more comments