C:\Users\Desktop\homeWork\Django_stu_man>python manage.py makemigrations Migrations for 'app01': app01\migrations\0001_initial.py - Create model ClassList - Create model Course - Create model CourseRecord - Create model Customer - Create model Custom…
Traceback (most recent call last): File "manage.py", line 15, in <module> execute_from_command_line(sys.argv) File "D:\Pythonlearning\lib\site-packages\django\core\management\__init__.py", line 371, in execute_from_command_line u…
django.db.migrations.exceptions.InconsistentMigrationHistory: Migration admin.0001_initial is applied before its dependency users.0001_initial on database 'default' 百度上的大部分解决方案: 方案1.删除数据库中 除了auth_user的其他表,然后重新来一次 大概原因是因为admin的模型依赖了之前默认的user模型吧 方案2:如果…