Django开发BUG "Model class WH_auth.models.User doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS."

  • 当进行数据库迁移的时候发生问题,报错如下:RuntimeError: Model class WH_auth.models.User doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.
  •  

  • 解决方法:

  • -----在导入model模型的时候,加上app应用名

     

  • ok ,问题解决。
posted @ 2019-04-08 14:31  大长胡子  阅读(1849)  评论(0编辑  收藏  举报