python manage.py migrate出错
在建立Django项目过程中执行 python manage.py migrate命令,出现如下错误:
解决办法:
编辑D:\install files\python\Lib\functools.py(第56行):
convert = {
'__lt__': [('__gt__', lambda self, other: other < self),
换成:
convert = {
'__lt__': [('__gt__', lambda self, other: not (self < other or self == other)),
修改后运行正常: