'Specifying a namespace in include() without providing an app_name ' django.core.exceptions.Improper

问题: 

File "C:\Users\User\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\urls\conf.py", line 39, in include
    '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.

解决:

猜你喜欢

转载自blog.csdn.net/weixin_42617800/article/details/88365054