django报错Did you install mysqlclient?
报错信息
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module.
Did you install mysqlclient?
解决方案:
修改__init__.py (与settings.py同一个目录)
添加如下信息:
import pymysql
pymysql.install_as_MySQLdb()
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module.
Did you install mysqlclient?
import pymysql
pymysql.install_as_MySQLdb()