'Specifying a namespace in inclu

2018-05-15  本文已影响0人  YangDxg

使用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
上一篇下一篇

猜你喜欢

热点阅读