django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3.

使用2.2 版本的django时,出现django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3.,查了资料才知道是兼容问题

出现此类问候删除项目根目录下__init__.py 文件中以下两行代码

import pymysql
pymysql.install_as_MySQLdb()

 

原文:https://blog.csdn.net/lpw_cn/article/details/103978909

相关文章