Django:django.core.exceptions.ImproperlyConfigured: Specifying a namespace in include() without providing an app_name is not supported.
from django.contrib import admin from django.urls import path, include urlpatterns = [ path('admin/', admin.site.urls), # 错误代码演示 # path('axf/', include('App.urls', namespace='axf')) # 正确的代码 path('axf/', include(('App.urls', 'axf'), namespace='axf')) ]
学以致用,知行合一