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:如有大神知道原因请告知,不胜感谢!

 

posted on 2018-07-06 10:01  怪卡  阅读(6701)  评论(0编辑  收藏  举报