开发者

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

开发者 https://www.devze.com 2023-04-04 06:50 出处:网络
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 stac

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

精彩评论

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