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()

  

上一篇:Could not find a package configuration file provided by “orocos_kdl“ 找不到的解决方法


下一篇:springMVC常用注解