2018年9月3日

django报错解决:view must be a callable or a list/tuple in the case of include().

摘要: django版本:1.11.15 django应用,修改urls.py后,访问报错:TypeError at /view must be a callable or a list/tuple in the case of include(). 修改后的urls.py文件:from django.co 阅读全文

posted @ 2018-09-03 17:32 kingofyz 阅读(1987) 评论(0) 推荐(0)

django报错解决:Invalid HTTP_HOST header: 'xxx.com'. You may need to add u'xxx.com' to ALLOWED_HOSTS.

摘要: django版本:1.11.15 使用uwsgi+nginx运行django程序,出现报错,报错为:Invalid HTTP_HOST header: 'xxx.com:82'. You may need to add u'xxx.com' to ALLOWED_HOSTS.xxx.com为绑定的测 阅读全文

posted @ 2018-09-03 17:18 kingofyz 阅读(4230) 评论(0) 推荐(0)

导航