Django自定义用户错误记录

django.db.migrations.exceptions.InconsistentMigrationHistory: Migration admin.0001_initial is applied before its dependency mysit.0001_initial on database 'default'.

执行:
1 setttings.py:
先注释掉 django.contrib.admin

2 注释掉urls.py
path(“admin/”, admin.site.urls),

执行3:
$ python3 manage.py migrate

再取消注释:1,2

再次执行4
$ python3 manage.py migrate1

你可能感兴趣的:(django,数据库,python)