win10启动django项目报错 Django RuntimeError: maximum recursion depth exceeded
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了win10启动django项目报错 Django RuntimeError: maximum recursion depth exceeded相关的知识,希望对你有一定的参考价值。
错误:Django RuntimeError: maximum recursion depth exceeded
原因出自Python\Lib\fuctools.py
把
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)] }12345678910111213141234567891011121314
改成
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)] }
本文出自 “尘” 博客,请务必保留此出处http://zhangpan.blog.51cto.com/2818271/1950281
以上是关于win10启动django项目报错 Django RuntimeError: maximum recursion depth exceeded的主要内容,如果未能解决你的问题,请参考以下文章
win10搭建django2.1.7开发环境,定义简易视图及网址
Nginx部署Django项目报错 KeyError: 'REQUEST_METHOD'