Django Startapp report maximum recursion depth exceeded

Source: Internet
Author: User

The error is as follows:

Workaround: Modify the Def total_ordering (CLS) of the functools.py file under the specified path: method:

The original appearance:

convert = {        ' __lt__ ': [(' __gt__ ', lambda Self, other:other < self),                   (' __le__ ', lambda-Self, other:not-Other & Lt  Self),                   (' __ge__ ', lambda-Self, other:not-<-other)],        ' __le__ ': [(' __ge__ ', lambda-Self, other:other <= Self),                   (' __lt__ ', lambda-Self, other:not other <=-Self),                   (' __gt__ ', lambda-Self, other:not-<=-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->=-Other)]
   }

The modified look:

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 < o ther)], ' __le__ ': [(' __ge__ ', lambda Self, other:not-<= 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 > oth ER)], ' __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)]}

Create an app after you've finished changing it

  

  

Django Startapp report maximum recursion depth exceeded

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.