Search code examples
pythonpostgresqlgoogle-app-enginegoogle-cloud-sqlgoogle-app-engine-python

How to connect to Postgres on Cloud SQL using the Python Standard Environment on App Engine


I have an app that uses the Python Standard Environment on App Engine. I tried, but failed, to find instructions to connect to Postgres on Cloud SQL.

In the documentation, under "App Engine standard environment to Cloud SQL", I only see instructions for Java.

Is it really the case that there is no way to connect to Postgres on Cloud SQL?


Solution

  • PostgreSQL is currently only available to GAE Flexible environments and GAE Standard running on Java 8. Python on GAE Standard is not yet supported for PostgreSQL. See FAQ and supported languages here.