作者zcxcxc20002 (凌晨是我)
看板Python
标题[问题] django debug =false ?
时间Sat May 10 22:23:27 2014
请问大家,关於setting.py DEBUG = False (django 1.6)
http://stackoverflow.com/questions/15499032/django-tutorials-500-debug-false
这个处理,小弟加了ALLOWED_HOSTS 还是无法解决 Internal Server Error.
想请问大家,是否有哪里还需要额外处理?
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 59.115.132.132
※ 文章网址: http://webptt.com/cn.aspx?n=bbs/Python/M.1399731811.A.0A1.html
1F:→ uranusjr:加 ALLOWED_HOSTS 就可以了, 你可能没设好或有其他错误 05/10 23:52
2F:→ uranusjr:ALLOWED_HOSTS 造成的错误应该是 400, 如果你得到 500 05/10 23:55
3F:→ uranusjr:应该是有其他 bug 的缘故 05/10 23:56
4F:→ zcxcxc20002:那我在check 看看,感谢!! 05/11 10:00