In settings.py:
import pymysql pymysql.install_as_MySQLdb()
add a line of code:
import pymysql pymysql.version_info=(1,3,13,"final",0) pymysql.install_as_MySQLdb()
django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3.
原文:https://www.cnblogs.com/DotSDot/p/13205034.html