-
报错信息如下:
image.png
-
解决方法
- 1.删除当前应用下的makemigrations文件夹,然后执行命令:
python manage.py makemigrations --empty authpeopleface
![](https://img.haomeiwen.com/i433720/9ce1a6e41492b825.png)
- 2.执行下列命令
python manage.py makemigrations
- 3.执行下列命令
python manage.py migrate --fake
python manage.py migrate
![](https://img.haomeiwen.com/i433720/2260d185f4c43a77.png)
报错信息如下:
解决方法
python manage.py makemigrations --empty authpeopleface
python manage.py makemigrations
python manage.py migrate --fake
python manage.py migrate
本文标题:[d-4]django数据库迁移1050错误
本文链接:https://www.haomeiwen.com/subject/nxycvhtx.html
网友评论