Django3.0/mysql ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3
在__init__.py中添加下列代码:
import pymysql
pymysql.install_as_MySQLdb()
出现报错:
django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3.
解决方案:
import pymysql
# 添加...
原创
2020-03-23 09:42:30 ·
230 阅读 ·
0 评论