Hello Tas,
To allow your app to connect to your Cloud SQL instance when the app is
deployed, add the user, password, database, and instance connection name
variables from Cloud SQL to the related environment variables in the
app.yaml file:
env_variables:
# Replace user, password, database, and instance connection name with
the values obtained
# when configuring your Cloud SQL instance.
SQLALCHEMY_DATABASE_URI: >-
mysql+pymysql://USER:PASSWORD@/DATABASE?unix_socket=/cloudsql/INSTANCE_CONNECTION_NAME
It may be worthwhile to check in detail this information and the other
related steps in the “Using Cloud SQL for MySQL” document
<https://cloud.google.com/appengine/docs/flexible/python/using-cloud-sql>. This
solution, with relevant detail, is given in the “cloudsql databases with
django on 'new' flexible google app engine” question
<http://stackoverflow.com/questions/39034250/cloudsql-databases-with-django-on-new-flexible-google-app-engine>
on Stackoverflow.
The “Running Django in the App Engine Flexible Environment” documentation
page <https://cloud.google.com/python/django/flexible-environment> might
prove quite helpful for related details.
--
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/684984f4-b5d1-4b6e-b32e-ea5bfcf96164%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.