1、报错:django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module. Did you installed mysqlclient? # 添加到setting同级目录__init__.py中 import pymysql pymysql.install_as_MySQLdb()