最近在系统的学习Python3,参考 http://c.biancheng.net/view/7484.html
遇到问题1:
Did you install mysqlclient?
解决方案:安装pymysql,并在_init_.py中添加如下代码:
import pymysql
pymysql.install_as_MySQLdb()
遇到问题2:
django mysql AttributeError: 'str' object has no attribute 'decode'
解决方案:
参考: