1、问题描述
使用Python 3.8+Django 3.0.5+pymysql 0.9.3遇到问题:django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3.
2、解决办法
修改__init__.py
,多插入一行代码:
import pymysql
//插入此行代码
pymysql.version_info = (1, 3, 13, "final", 0)
pymysql.install_as_MySQLdb()