django.db.migrations.exceptions.InconsistentMigrationHistory

后端 未结 25 1098
耶瑟儿~
耶瑟儿~ 2020-12-04 08:16

When I run python manage.py migrate on my Django project, I get the following error:

Traceback (most recent call last):
File \"manage.py\", line         


        
25条回答
  •  Happy的楠姐
    2020-12-04 08:55

    If you are working on an empty database a quick fix could be running the migrations for the account app, before any other app migrations.

    $ ./manage.py migrate account
    

    And then:

    $ ./manage.py migrate
    

提交回复
热议问题