恢弘志士之气,不宜妄自菲薄。这篇文章主要讲述django startapp报 maximum recursion depth exceeded相关的知识,希望能为你提供帮助。
报错截图如下:
文章图片
解决办法:修改指定路径下的functools.py文件的def total_ordering(cls):方法:
原来的样子:
convert = { \'__lt__\': [(\'__gt__\', lambda self, other: other < self), (\'__le__\', lambda self, other: not other < self), (\'__ge__\', lambda self, other: not self < other)], \'__le__\': [(\'__ge__\', lambda self, other: other < = self), (\'__lt__\', lambda self, other: not other < = self), (\'__gt__\', lambda self, other: not self < = other)], \'__gt__\': [(\'__lt__\', lambda self, other: other > self), (\'__ge__\', lambda self, other: not other > self), (\'__le__\', lambda self, other: not self > other)], \'__ge__\': [(\'__le__\', lambda self, other: other > = self), (\'__gt__\', lambda self, other: not other > = self), (\'__lt__\', lambda self, other: not self > = other)] }
修改后的样子:
convert = { \'__lt__\': [(\'__gt__\', lambda self, other: not (self < other or self == other)), (\'__le__\', lambda self, other: self < other or self == other), (\'__ge__\', lambda self, other: not self < other)], \'__le__\': [(\'__ge__\', lambda self, other: not self < = other or self == other), (\'__lt__\', lambda self, other: self < = other and not self == other), (\'__gt__\', lambda self, other: not self < = other)], \'__gt__\': [(\'__lt__\', lambda self, other: not (self > other or self == other)), (\'__ge__\', lambda self, other: self > other or self == other), (\'__le__\', lambda self, other: not self > other)], \'__ge__\': [(\'__le__\', lambda self, other: (not self > = other) or self == other), (\'__gt__\', lambda self, other: self > = other and not self == other), (\'__lt__\', lambda self, other: not self > = other)] }
改完之后即可创建app
【django startapp报 maximum recursion depth exceeded】
推荐阅读
- Android库项目中的资源ID冲突
- ApplicationListener用法
- android studio 2018.3.23
- android studio 2018.3.22
- Could not find com.android.support:appcompat-v7:23.1.1
- RN app打包
- Failed to resolve: com.android.support:appcompat-v7:27.0.1问题解决
- Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/cache/app-i
- android------DDMS files not found: toolshprof-conv.exe