django3命名空间出错
path('user/', include('user.urls', namespace='user')),
在user中添加
app_name = 'apps.user'
"INSTALLED_APPS." % (module, name)
RuntimeError: Model class apps.user.models.User doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.
原来引用方式
from apps.user import views
改为直接引用错误解决
from .import views