Django报错django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module. Did you install mysqlclient?
报错信息:
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module. Did you install mysqlclient?
解决方式:
在settings.py配置文件中,添加pymysql的配置,
import pymysql
pymysql.install_as_MySQLdb()
这样再次选择运行项目就不会再报错了