解决方案:

在django项目的__init__下输入以下代码:

import pymysql
pymysql.install_as_MySQLdb()