untimeError: Model class app_anme.models.User doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.
关于django错误的导入错误
1.错误的导入方式如下:
2.正确的导入方式:
只有使用users.models的导入方式才能导入成功,使用绝对路径也不行。
ps:如有大神知道原因请告知,不胜感谢!
untimeError: Model class app_anme.models.User doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.
关于django错误的导入错误
1.错误的导入方式如下:
2.正确的导入方式:
只有使用users.models的导入方式才能导入成功,使用绝对路径也不行。
ps:如有大神知道原因请告知,不胜感谢!
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。