Python

Python命令创建mysql数据表问题

2019-12-30  本文已影响0人  左木北鱼

1、运行命令python manage.py makemigrations抛出异常

Traceback (most recent call last):
.....
    raise ImproperlyConfigured('mysqlclient 1.3.13 or newer is required; you have %s.' % Database.__version__)
django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3.

2、注释掉版本抛错

路径:Lib/site-packages/django/db/backends/mysql/base.py

上一篇下一篇

猜你喜欢

热点阅读