AttributeError: 'str' object has no attribute 'decode'
解决方案:
找到django的安装目录:/usr/local/lib/python3.6/site-packages/django/db/backends/mysql
vim operations.py 找到
query.decode 改为query.encode
AttributeError: 'str' object has no attribute 'decode'
解决方案:
找到django的安装目录:/usr/local/lib/python3.6/site-packages/django/db/backends/mysql
vim operations.py 找到
query.decode 改为query.encode