Alex Kreimer
Alex Kreimer

Reputation: 1106

django flatpages works with DEBUG=True, doesn't work with DEBUG=False

I can see that django looks for 500.html when DEBUG is False. What could be the problem?

Upvotes: 0

Views: 480

Answers (1)

Tommaso Barbugli
Tommaso Barbugli

Reputation: 12031

When debug is set to False django renders the 500.html template instead of the debug stack-trace thing.

It might be that on a http 404 (not found) exception it tries to render the 404.html template and if it's not found than tries with the 500.html (internal error).

It is not a problem in itself but just a configuration.

Upvotes: 1

Related Questions