0

我可以看到 django 寻找500.htmlwhen DEBUGis False。可能是什么问题呢?

4

1 回答 1

1

当 debug 设置为 False 时,django 会呈现 500.html 模板而不是 debug stack-trace 的东西。

可能是在 http 404(未找到)异常上,它尝试呈现 404.html 模板,如果未找到,则尝试使用 500.html(内部错误)。

它本身不是问题,而只是配置。

于 2011-09-13T16:51:40.437 回答