【问题集】【Django】django.core.exceptions.ImproperlyConfigured: mysqlclient 1.4.0 or newer is required;

Error:
【Django】django.core.exceptions.ImproperlyConfigured: mysqlclient 1.4.0 or newer is required;
Solution:
init .py file modification

import pymysql
pymysql.version_info = (1, 4, 13, "final", 0)
pymysql.install_as_MySQLdb()  # 使用pymysql代替mysqldb连接数据库

Guess you like

Origin blog.csdn.net/weixin_51656605/article/details/112846998