报错信息
You are trying to add a non-nullable field ‘ass_repair’ to ass_repair without a default; we can’t do that (the database nee
ds something to populate existing rows).
原因
删表剩余残留导致
解决方法
先在数据库把表删掉:drop table 注释django中对应的Model 执行命令:python manage.py makemigrations python manage.py migrate --fake 去掉注释重新迁移: python manage.py makemigrations python mange.py migrate