AttributeError: 'str' object has no attribute 'decode'

时间:2019-01-11 22:39:18   收藏:0   阅读:2767

执行: python  manage.py makemigrations

 

 

报错如下:
技术分享图片

 

 

找到错误代码(line146):query = query.encode(errors=‘replace‘)

解决方法:把decode改为encode即可。

原文:https://www.cnblogs.com/lingjinle/p/10257558.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!