首页 > 数据库技术 > 详细

Django迁移数据库表报错AttributeError: 'str' object has no attribute 'decode'解决方案

时间:2020-07-16 19:27:32      阅读:65      评论:0      收藏:0      [点我收藏+]

在文件/Users/xxx/PYTHONWORKSPACE/ProjectManage/PM/lib/python3.7/site-packages/django/db/backends/mysql/operations.py中在如下图代码中query与decode之间加上encode(‘utf-8‘)即可

 

技术分享图片

 

Django迁移数据库表报错AttributeError: 'str' object has no attribute 'decode'解决方案

原文:https://www.cnblogs.com/lxmtx/p/13324209.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!