开发者

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

I can see that django loo开发者_StackOverflow社区ks for 500.html when DEBUG is False. What could be the problem?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜