首页 > 编程语言 > 详细

解决:python manage.py makemigrations报错问题

时间:2020-08-21 08:33:24      阅读:190      评论:0      收藏:0      [点我收藏+]

执行:python manage.py makemigrations命令时报错

raise ImproperlyConfigured(‘mysqlclient 1.4.0 or newer is required; you have %s.‘ % Database.__version__)
django.core.exceptions.ImproperlyConfigured: mysqlclient 1.4.0 or newer is required; you have 0.10.0.

技术分享图片

解决办法:根据报错信息中base.py文件所在路径,找到该文件,注释掉异常的代码部分。

技术分享图片

 

技术分享图片

问题解决:再次执行python manage.py makemigrations命令,执行成功

技术分享图片

 

解决:python manage.py makemigrations报错问题

原文:https://www.cnblogs.com/syywy/p/13539037.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!