django 迁移数据库报错
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module.
Did you install mysqlclient?
解决方案:在settings.py同级目录中的__init__.py文件中加入:
import pymysql
pymysql.install_as_MySQLdb()
django 迁移数据库报错
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module.
Did you install mysqlclient?
解决方案:在settings.py同级目录中的__init__.py文件中加入:
import pymysql
pymysql.install_as_MySQLdb()