django执行makemigrations报AttributeError: 'str' object has no attribute 'decode'

在这里插入图片描述
顺着报错文件点进去,找到query = query.decode(errors=‘replace’)
将decode修改为encode即可

猜你喜欢

转载自blog.csdn.net/lt326030434/article/details/89291446