首页 > 数据库> > django报错 django.core.exceptions.ImproperlyConfigured: mysqlclient 1.4.0 or newer is required; you ha
django报错 django.core.exceptions.ImproperlyConfigured: mysqlclient 1.4.0 or newer is required; you ha
作者:互联网
django 3.1,Python3.8.2 启动项目报错如下:
django.core.exceptions.ImproperlyConfigured: mysqlclient 1.4.0 or newer is required; you have 0.10.1.
解决
项目的__init__文件加如下内容:
import pymysql pymysql.version_info = (1, 4, 0, "final", 0) pymysql.install_as_MySQLdb()
标签:1.4,__,mysqlclient,pymysql,django,报错 来源: https://www.cnblogs.com/yizhipanghu/p/15321228.html