InvalidBasesError: Cannot resolve bases for []

后端 未结 14 953
遥遥无期
遥遥无期 2021-02-03 23:03

When I run tests I get this error during database initialization:

django.db.migrations.state.InvalidBasesError: Cannot resolve bases for [

        
14条回答
  •  梦谈多话
    2021-02-03 23:50

    Have you tried running manage.py makemigrations on your app before running tests?

    Also, check if the app which model(s) you are trying to Proxy is included in your INSTALLED_APPS.

提交回复
热议问题