Django 扩展类后重新make出错

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



解决:

删除数据库中除auth_user所有的表,再重新执行,python manage.py makemigrations;python manage.py migrate

你可能感兴趣的:(Django 扩展类后重新make出错)