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》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

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

数学拾遗

数学拾遗

加黑蒂 / 清华大学出版社 / 2004-8 / 49.00元

Beginning graduate students in mathematics and other quantitative subjects are expected to have a daunting breadth of mathematical knowledge ,but few have such a backgroud .This book will help stedent......一起来看看 《数学拾遗》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

html转js在线工具
html转js在线工具

html转js在线工具

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

HEX CMYK 互转工具