1 # settings.py 2 3 import pymysql 4 pymysql.install_as_MySQLdb() 转载于:https://www.cnblogs.com/hutzerg/p/7866493.html