docker部署Django3.0报错
报错信息:
File "/usr/local/lib/python3.7/site-packages/django/db/backends/mysql/base.py", line 37, in <module>
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.
按照这个路径去修改base.py其实是找不到的,需要找到生成的Python镜像中的这个文件。
find / -name mysql/base.py
找到相同后缀的文件修改即可。