除标题外,还有报错: django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.3 or newer is required; you have 0.6.7.None
解决:
需要改: > 虚拟环境>
Lib\site-packages\django\db\backends\mysql\base.py需要将一下代码注释掉:
if version < (1, 3, 3): raise ImproperlyConfigured("mysqlclient 1.3.3 or newer is required; you have %s" % Database.version)