Django项目中开发中出了点问题,求解决办法

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. 

Eminjan
浏览 5073回答 3
3回答

Ju7Ran

AUTHENTICATION_BACKENDS = (     'apps.front.views.CustomBackend', )

qq_哇塞_5

我是在将后台管理界面的app模块名称改为中文的时候出现了这种错误,而且我在setting里面已经添加了Apps的路径,也在INSTALLED_APPS引入了app名称,organization和operationAPP都很正常,只有courses和users APP有问题。就是这不操作的时候有问题:from django.apps import AppConfig class UsersConfig(AppConfig):     name = 'apps.users'     # verbose_name = "用户信息"

对于自己是一个挑战

我的imoocc项目也出现了同样的问题,大家有谁安装工imooc 这个项目,请大神解答一下以上问题。
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Html5
Python