原文:Django报错之...doesn't declare an explicit app_label...

Django 启动项目服务的时候可能会报以下错误:以下Apps.userPage是应用名,换成你自己的 单项目不太可能会遇到这个问题,一般多应用放在一个Apps下时可能会出现.doesn t declare an explicit app label and isn t in an application in INSTALLED APPS 如果你确信在models.py中正确添加了对应的Mod ...

2021-07-23 17:18 0 141 推荐指数:

查看详情

't declare an explicit app_label and isn't in an a

Error Msg 原因及解决:   1. 没有安装apps, 在setting.py中安装app   2. 安装app后, 所有用到app中的模块导入必须使用app.模块名, 不能使用上级目录apps   3. 如果无法迁移, 可指定迁移 ...

Mon Dec 10 21:11:00 CST 2018 0 679
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM