Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以看到 django 寻找500.htmlwhen DEBUGis False。可能是什么问题呢?
500.html
DEBUG
False
当 debug 设置为 False 时,django 会呈现 500.html 模板而不是 debug stack-trace 的东西。
可能是在 http 404(未找到)异常上,它尝试呈现 404.html 模板,如果未找到,则尝试使用 500.html(内部错误)。
它本身不是问题,而只是配置。