python3环境下:
1、pip install pymysql
2、在项目/__init__.py中添加如下内容:
import pymysql
pymysql.install_as_MySQLdb()