GoogleCloudPlatform / GoogleCloudPlatform/cloud-sql-python-connector

Provide samples for using Python Connector with Django

未关闭
#437 22 条评论 18 个 reaction 已指派 1 人 已指派给 @kgala2 在 GitHub 查看
priority: p1 type: cleanup type: docs
主要语言
Python
星标
344
派生
89
平均合并
5 小时 33 分钟
30 天内合并 PR
2

描述

[Django](https://www.djangoproject.com/) is one of the most widely used Python web frameworks. We should look at providing samples on how to connect to a Cloud SQL database using the Python Connector and Django.

What makes this a more difficult feat is that the default [Django backend](https://docs.djangoproject.com/en/4.1/ref/databases/) for Postgres is [`psycopg2`](https://github.com/psycopg/psycopg2) and for MySQL is [`mysqlclient`](https://github.com/PyMySQL/mysqlclient) or [`mysql-connector-python`](https://github.com/mysql/mysql-connector-python), which are not currently supported with the Python Connector.

- [Django Postgres](https://docs.djangoproject.com/en/4.1/ref/databases/#postgresql-notes)
- [Django MySQL](https://docs.djangoproject.com/en/4.1/ref/databases/#mysql-db-api-drivers)

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。