1.python3.8 + django3.0.7 使用pymysql报错:
django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.2
2.报错原因:是django2.2以上版本内部的一个限制
3.解决方法:修改django内部源码
4.修改文件:C:\Users\chenjianwen\AppData\Local\Programs\Python\Python38\Lib\site-packages\django\db\backends\mysql\base.py,注释掉两行即可
#if version < (1, 3, 13): # raise ImproperlyConfigured(‘mysqlclient 1.3.13 or newer is required; you have %s.‘ % Database.__version__)
5.修改后保存运行正常