RuntimeError: Model class apps.users.models.UserProfile doesn't declare an explicit app_label and either isn't in an application in INSTALLED_APPS or else was imported before its application was loaded.
3 回答
qq_哇塞_5
TA贡献1条经验 获得超0个赞
我是在将后台管理界面的app模块名称改为中文的时候出现了这种错误,而且我在setting里面已经添加了Apps的路径,也在INSTALLED_APPS引入了app名称,organization和operationAPP都很正常,只有courses和users APP有问题。
就是这不操作的时候有问题:
from django.apps import AppConfig class UsersConfig(AppConfig): name = 'apps.users' # verbose_name = "用户信息"
添加回答
举报
0/150
提交
取消