django 迁移数据库报错
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module.
Did you install mysqlclient?
解决方案:在settings.py同级目录中的__init__.py文件中加入:
import pymysql pymysql.install_as_MySQLdb()
原文地址:https://www.cnblogs.com/pfeiliu/p/12045021.html
时间: 2024-10-07 04:39:37