django报错解决mysqlclient 1.4.0 or newer is required; you have 0.10.0.

 1. 项目目录下__init__.py文件中输入如下代码

django报错解决mysqlclient 1.4.0 or newer is required; you have 0.10.0._第1张图片

2. 代码如下: 

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

 

你可能感兴趣的:(django报错)