django生成迁移文件报错,django.core.exceptions.ImproperlyConfigured: mysqlclient 1.4.0 or newer is required; you have 0.10.0.

 
更多

解决:在工程文件的__init__.py中加上(打黄这个) 指定版本

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

本文固定链接: https://www.cxy163.net/archives/5263 | 绝缘体

该日志由 绝缘体.. 于 2020年08月28日 发表在 未分类 分类下, 你可以发表评论,并在保留原文地址及作者的情况下引用到你的网站或博客。
原创文章转载请注明: django生成迁移文件报错,django.core.exceptions.ImproperlyConfigured: mysqlclient 1.4.0 or newer is required; you have 0.10.0. | 绝缘体
关键字: , , , ,

django生成迁移文件报错,django.core.exceptions.ImproperlyConfigured: mysqlclient 1.4.0 or newer is required; you have 0.10.0.:等您坐沙发呢!

发表评论


快捷键:Ctrl+Enter