美文网首页
'Specifying a namespace in inclu

'Specifying a namespace in inclu

作者: YangDxg | 来源:发表于2018-05-15 09:17 被阅读0次

使用python manage.pyunserver启动时报错
、、、
'Specifying a namespace in include() without providing an app_name '
django.core.exceptions.ImproperlyConfigured: Specifying a namespace in include() without providing an app_name is not supported. Set the app_name attribute in the included module, or pass a 2-tuple containing the list of patterns and app_name instead.
、、、

原因是app下urls.py中缺失app_name导致的,加上app_name即可 image

相关文章

网友评论

      本文标题:'Specifying a namespace in inclu

      本文链接:https://www.haomeiwen.com/subject/xbfedftx.html