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

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

 

 

posted @ 2020-07-16 18:22  梅梅不想踩坑  阅读(1205)  评论(0编辑  收藏  举报