@Attila-Mihaly Balazs
In https://github.com/GoogleCloudPlatform/python-docs-samples/issues/870 
<https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2FGoogleCloudPlatform%2Fpython-docs-samples%2Fissues%2F870&sa=D&sntz=1&usg=AFQjCNH-b9wKstspF_SETRy55cQfil3IwA>
 they 
are talking about Flex, but I have a problem with Standard in particular


my app.yaml:

runtime: python37
> entrypoint: web/run.sh
> env_variables:
>   SECRET_KEY: '___DJANGO_SECRET_KEY___'
>   DEBUG: 'True'
>   SPECTRE_APP_ID: "___SPECTRE_APP_ID___"
>   SPECTRE_APP_SECRET: "___SPECTRE_APP_SECRET___"
>   MAILCHIMP_KEY: "___MAILCHIMP_KEY___"
>   SMTP_HOST: "___SMTP_HOST___"
>   SMTP_USER: "___SMTP_USER___"
>   SMTP_PASSWORD: "___SMTP_PASSWORD___"
>   DB_HOST: '/cloudsql/<project>:<region>:<db>'
>   DB_NAME: '....'
>   DB_USER: '....'
>   DB_PASSWORD: '___DB_PASSWORD___'
>   STATIC_URL: 
> 'https://storage.googleapis.com/.....-backend-static-files/static/' 
> beta_settings:
>   cloud_sql_instances: <project>:<region>:<db>




The Error Message is the following:

could not connect to server: Connection refused
        Is the server running locally and accepting
        connections on Unix domain socket 
"/cloudsql/<project>:<region>:<db>/.s.PGSQL.5432"?



When using the same settings with "Flex"-Engine. It works fine. Is this 
really supposed to work? Can anyone confirm, this is working? Also Is 
Postgres in Google Cloud still in Beta stage? (Since more than one year 
now?)
Is anyone using this for production? I am a little bit concerned, that this 
might not be the best idea...

On Sunday, 14 October 2018 16:31:31 UTC+2, Chen Yu wrote:
>
> Hi Lukas,
>
> Thanks fo getting back to us! The settings.py file looks alright; if 
> possible, would you mind double-checking the DB_HOST environment variable 
> in app.yaml? It should be of the `/cloudsql/YOUR-CONNECTION-NAME` format 
> (e.g. /cloudsql/my-project:us-central1:my-sql-instance). Additionally, for 
> PostgreSQL instances, a *s.PGSQL.5432* suffix is required on the local 
> socket path; *some packages, such as psycopg2, add this automatically, 
> however, if you are using other connectors, you may have to add this 
> manually.*
>
> Also, if you do not mind me asking, what is the error message/code you 
> receive when trying to access your Django App Engine application?
>
> Chen
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/bb9649b0-3f92-44a6-a240-b900f2293ed5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to