完整报错
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.
解决方法
在url.py
中修改为:
from django.urls import path, include
path("", include(("app名称.urls", "app名称"), namespace="别名")),