django项目在执行python manage.py makemigrations进行表迁移时报错 删除app里的migrations文件 cmd输入(注:app为app名) python manage.py makemigrations --empty app 重新执行python manage.py makemigrations python manage.py makemigrations python manage.py migrate 这样就重新生成表结构文件了