RuntimeError: Model class meiduo_mall.apps.users.models.User doesn't declare an explicit app_label a
2018-12-06 20:06
1291 查看
1.
Django项目错误提示:
RuntimeError: Model class meiduo_mall.apps.users.models.User doesn’t declare an explicit app_label and isn’t in an application in INSTALLED_APPS.
2.原图为:
3.解决
使用相对路径引用Models模块,把绝对路径都改成相对路径,每个错误的绝对路径都要改成相对路径,如图:
相关文章推荐
- RuntimeError: Model class meiduo.apps.users.models.User doesn’t declare an explicit app_label and is
- RuntimeError: Model class models.Seller doesn't declare an explicit app_label and isn't in an applic
- 关于DjangoRuntimeError: Model class doesn't declare an explicit app_label
- model class django.contrib.contenttypes.models.contenttype doesn't declare an explicit app_label and
- Django报错提示 "INSTALLED_APPS." % (module, name) RuntimeError: Model class apps.users.models.User do
- org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: file [/Users/lonecloud/tomcat/apache-tomcat-7.0.70 2/webapps/myproject/WEB-INF/classes/cn/lone
- Not an managed type: class managementsystem.platform.security.model.Users
- Hessian/Burlap: is an unknown class in WebappClassLoader
- Django 报错 LookupError: No installed app with label 'user' 的解决办法
- mybatis分页警告:Hessian/Burlap: 'com.github.pagehelper.Page' is an unknown class in WebappClasss解决办法
- java.lang.ClassCastException: cn.study.model.User_$$_javassist_0 cannot be cast to javassist.util.pr
- 解决最近windows版本Node.js中npm出现的“Error: ENOENT, stat 'C:\Users\UserName\AppData\Roaming\npm”的问题
- There is no getter for property named 'user' in 'class com.gao.model.Message
- 启动azkaban时出现User xml file conf/azkaban-users.xml doesn't exist问题解决
- Wildcard App IDs can not be used to create in House provisioning profiles.Please use an Explicit App
- PHPCMS中load_model,load_app_class, load_sys_func
- An association from the table User refers to an unmapped class
- 警告1946。无法设置快捷方式"VMware Workstation.Ink"的属性"System.AppUserModel.ID"。多人亲测,完美解决
- java.lang.RuntimeException: Invalid action class configuration that references an unknown class named [userRegisterAction]
- 警告1946。无法设置快捷方式"VMware Workstation.Ink"的属性"System.AppUserModel.ID"