数据库
首页 > 数据库> > django.core.exceptions.ImproperlyConfigured: mysqlclient 1.4.0 or newer is required; you have 0.10.1

django.core.exceptions.ImproperlyConfigured: mysqlclient 1.4.0 or newer is required; you have 0.10.1

作者:互联网

报错信息:

django.core.exceptions.ImproperlyConfigured: mysqlclient 1.4.0 or newer is required; you have 0.10.1.

解决方案:

在settings.py的同路径下的__init__.py加入以下内容

import pymysql
pymysql.version_info=(1, 4, 0, 'final', 0)
pymysql.install_as_MySQLdb()

  

标签:1.4,core,py,required,mysqlclient,pymysql,newer
来源: https://www.cnblogs.com/wlzx-dic/p/14406165.html