[英]Django debug mode False then the page doesn't work
I'M using Django in local server.我在本地服务器中使用 Django。 If I turned debug mode to False, the web page is not available.(500) But it works perfect if the debug mode is true.
如果我将调试模式设置为 False,则网页不可用。(500) 但如果调试模式为 true,它就可以完美运行。 What can I do to fix this?
我能做些什么来解决这个问题?
if it's django 1.5 it could be related to allowed host setting如果是 django 1.5,则可能与允许的主机设置有关
https://docs.djangoproject.com/en/1.5/ref/settings/#std%3asetting-ALLOWED_HOSTS https://docs.djangoproject.com/en/1.5/ref/settings/#std%3asetting-ALLOWED_HOSTS
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.