Django 在使用mysql时报错时
django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is
可在__init__文件添加这几行代码
import pymysql
pymysql.version_info = (1, 3, 13, "final", 0)
pymysql.install_as_MySQLdb()
Django 在使用mysql时报错时
django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is
可在__init__文件添加这几行代码
import pymysql
pymysql.version_info = (1, 3, 13, "final", 0)
pymysql.install_as_MySQLdb()