GoogleCloudPlatform / GoogleCloudPlatform/cloud-sql-python-connector

Provide samples for using Python Connector with Django

Aperta
#437 22 commenti 18 reazioni 1 assegnatario Assegnata a @kgala2 Vedi su GitHub
priority: p1 type: cleanup type: docs
Lingua principale
Python
Stelle
344
Fork
89
Merge medio
5h 33m
PR unite (30g)
2

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.