django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3

解决方法

1、找到Python安装路径下(我的是虚拟环境)

~/.virtualenvs/web/lib/python3.6/sitepackages/django/db/backends/mysqlbase.py文件

2、将文件中的如下代码注释

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

3、重新在项目manage.py路劲下执行如下命令:

python manage.py makemigrations
python manage.py migrate

你可能感兴趣的:(报错解决,django,python)