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