由于上一次已经迁移过文件了,有了缓存,执行python manage.py migrate 报错
将数据库中已经存在的表直接删除
之后再执行文件迁移命令
python manage.py makemigrations python manage.py migrate