6
在include()中使用名称空间时有关app_name的ImproperlyConfiguredError
我目前正在尝试Django。我在urls.py namespace中的一个参数中使用了参数。include()当我运行服务器并尝试浏览时,出现此错误。 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 …
105
python
django
django-urls