ALLOWED_HOSTS = ['*']

 

 

https://docs.djangoproject.com/en/1.10/ref/settings/#std:setting-ALLOWED_HOSTS

 

https://stackoverflow.com/questions/24857158/commanderror-you-must-set-settings-allowed-hosts-if-debug-is-false

 

posted @ 2017-12-13 13:01  papering  阅读(785)  评论(0编辑  收藏  举报