出现的问题:
阿里云ubuntu服务器Django项目开发中出现
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
cd /root/.virtualenvs/T/lib/python3.5/site-packages/django/db/backends/mysql
打开base.py
vi base.py
知道到下图所示位置:
<