顺着报错文件点进去,找到query = query.decode(errors=‘replace’)将decode修改为encode即可.
django执行makemigrations报AttributeError: 'str' object has no attribute 'decode'
原文:https://www.cnblogs.com/leoych/p/13539400.html