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

     

  • 解决方法:

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

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

     

  • ok ,问题解决。

相关文章:

  • 2022-12-23
  • 2021-11-02
  • 2021-06-04
  • 2021-05-01
  • 2021-12-04
  • 2022-12-23
  • 2021-09-26
  • 2021-12-20
猜你喜欢
  • 2022-12-23
  • 2022-02-21
  • 2021-11-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案