有没有办法在 ubuntu 上同时使用 Python3、django 2.0.2 和 MySql?
is there a way to use Pytion3, django2.0.2 and MySql together on ubuntu?
我搜索了很多以在 MySql 服务器上安装 python3.6 和 django2.0.2,但我一无所获,因为 django2.0.2 框架还不支持 MySqldb。
Django REST Framework 确实支持 MySQL 引擎。
Django supports MySQL 5.5 and higher.
Django’s inspectdb feature uses the information_schema database, which
contains detailed data on all database schemas.
Django expects the database to support Unicode (UTF-8 encoding) and
delegates to it the task of enforcing transactions and referential
integrity. It is important to be aware of the fact that the two latter
ones aren’t actually enforced by MySQL when using the MyISAM storage
engine, see the next section.
来源:https://docs.djangoproject.com/en/2.0/ref/databases/
按照link设置配置
我搜索了很多以在 MySql 服务器上安装 python3.6 和 django2.0.2,但我一无所获,因为 django2.0.2 框架还不支持 MySqldb。
Django REST Framework 确实支持 MySQL 引擎。
Django supports MySQL 5.5 and higher.
Django’s inspectdb feature uses the information_schema database, which contains detailed data on all database schemas.
Django expects the database to support Unicode (UTF-8 encoding) and delegates to it the task of enforcing transactions and referential integrity. It is important to be aware of the fact that the two latter ones aren’t actually enforced by MySQL when using the MyISAM storage engine, see the next section.
来源:https://docs.djangoproject.com/en/2.0/ref/databases/
按照link设置配置