django迁移数据库错误问题解决
时间:2022-03-12 08:49:09|栏目:Python代码|点击: 次
django.db.migrations.graph.NodeNotFoundError: Migration order.0002_auto_20181209_0031 dependencies reference nonexistent parent node ('user', '0001_initial')
删除所有的pyc文件,迁移文件 然后重新运行
python manage.py makemigrations
django.db.utils.InternalError: (1060, "Duplicate column name 'addr_id'")
运行
python manage.py migrate --fake
然后重新运行
python manage.py migrate
成功!
上一篇:Python中bytes字节串和string字符串之间的转换方法
栏 目:Python代码
下一篇:为什么是 Python -m
本文标题:django迁移数据库错误问题解决
本文地址:http://www.codeinn.net/misctech/195957.html






