GoogleCloudPlatform / GoogleCloudPlatform/cloud-sql-python-connector

Provide samples for using Python Connector with Django

Abierto
#437 22 comentarios 18 reacciones 1 asignado Asignado a @kgala2 Ver en GitHub
priority: p1 type: cleanup type: docs
Lenguaje dominante
Python
Estrellas
344
Forks
89
Merge medio
5 h 33 min
PR fusionados (30 d)
2

Descripción

[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)

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.