django.db.migrations.exceptions.NodeNotFoundError

栏目: Python · 发布时间: 6年前

内容简介:raise NodeNotFoundError(self.error_message, self.key, origin=self.origin) django.db.migrations.exceptions.NodeNotFoundError: Migration auth.0012_auto_20190411_0413 dependencies reference nonexistent parent node ('auth', '0011_update_proxy_permissions')错误原因

raise NodeNotFoundError(self.error_message, self.key, origin=self.origin) django.db.migrations.exceptions.NodeNotFoundError: Migration auth.0012_auto_20190411_0413 dependencies reference nonexistent parent node ('auth', '0011_update_proxy_permissions')

错误原因未知,可能是多台电脑修改的原因。网上找到的解决办法。

TIPS:最好先备份数据。

1.卸载Django pip uninstall django 2.删除 /Lib/site-packages, django相关的文件夹(mac具体目录:usr/local/lib/python3/). 3.删除项目下所有 *.pyc 文件. 4.删除项目下所有 pycache 文件夹. 5.删除 migrations 下的文件保留 init .py. 6.重新安装Django pip install django==x.x.x . 7.同步数据库 python manage.py migrate . 8.生成数据库文件 python manage.py makemigrations . 9.同步数据库 python manage.py migrate . 10.启动服务 python manage.py runserver .


以上所述就是小编给大家介绍的《django.db.migrations.exceptions.NodeNotFoundError》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Java Message Service API Tutorial and Reference

Java Message Service API Tutorial and Reference

Hapner, Mark; Burridge, Rich; Sharma, Rahul / 2002-2 / $ 56.49

Java Message Service (JMS) represents a powerful solution for communicating between Java enterprise applications, software components, and legacy systems. In this authoritative tutorial and comprehens......一起来看看 《Java Message Service API Tutorial and Reference》 这本书的介绍吧!

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具