django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.3 or newer is required; you have XXX

  1. 问题描述:在执行 python manage.py makemigrations 时,控制台报错,错误信息为:mysqlclient 1.3.3 or newer is required; you have XXX
  2. 问题解决:
找到python安装路径下的 D:\Software\Python36\Lib\site-packages\django\db\backends\mysql\base.sql
将下面两行注释掉:

 if version < (1, 3, 13):
  raise ImproperlyConfigured('mysqlclient 1.3.13 or newer is required; you have %s.' % Database.__version__)

重新在项目manage.py路径下执行如下命令即可: python manage.py makemigrations

你可能感兴趣的:(错误日志)