Django: AttributeError: ‘str’ object has no attribute ‘decode’

Table of Content

解决办法:

$ vim /Users/jediXL/Code/env/lib/python3.7/site-packages/django/db/backends/mysql/operations.py

找到146行:

注释掉 if 部分.