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

顺着报错文件点进去,找到query = query.decode(errors=‘replace’)
将decode修改为encode即可.

 

不考虑业务场景,一味的争执技术的高下,都是耍流氓。
原文地址:https://www.cnblogs.com/leoych/p/13539400.html