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')) ]