django.db.migrations.exceptions.InconsistentMigrationHistory

后端 未结 25 1174
耶瑟儿~
耶瑟儿~ 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条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-04 08:55

    just delete the sqlite file or run flush the databse 'python manage.py flush' and then run makemigrations and migrate commands respectively.

提交回复
热议问题