前言
使用python manage.py makemigrations
时出现报错:
from err django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module. Did you install mysqlclient?
解决办法
安装pymysql
pip install pymysql
在__init__.py中加入如下代码
import pymysql
pymysql.install_as_MySQLdb()
参考文章
© 著作权归作者所有
举报
相关热门文章
发表评论
0/200