Thanks for the response, I have followed the steps aforementioned. Now my
Sdk version is 161.0.0 and i have created the gunicorn file in /usr/bin but
the deploy remains failing with the same error. For the app.yaml file
generation and the databases settings i am following this guide
https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/appengine/flexible/django_cloudsql/
Also, I want to include the content of these files in order to help to
resolve this issue.
*settings.py*
DATABASES = {
'default': {
# If you are using Cloud SQL for MySQL rather than PostgreSQL, set
# 'ENGINE': 'django.db.backends.mysql' instead of the following.
'ENGINE': 'django.db.backends.postgresql',
'NAME': '<db_name>',
'USER': '<db_user>',
'PASSWORD': '<db_pass>',
}
}
# In the flexible environment, you connect to CloudSQL using a unix socket.
# Locally, you can use the CloudSQL proxy to proxy a localhost connection
# to the instance
DATABASES['default']['HOST'] = '/cloudsql/<instance_name>'
if os.getenv('GAE_INSTANCE'):
pass
else:
DATABASES['default']['HOST'] = '127.0.0.1'
# [END dbconfig]
*app.yaml*# [START runtime]
runtime: python
env: flex
entrypoint: gunicorn -b :$PORT wsgi:application # my wsgi.py file is in the
same path than manage.py
beta_settings:
cloud_sql_instances: curriculum-ibonilla:us-central1:curriculum-ibonilla
runtime_config:
python_version: 3
# [END runtime]
*requirements.txt*Django==1.11.2
wheel==0.29.0
gunicorn==19.7.1
psycopg2==2.7.1
--
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/c969e862-dbbb-4921-a775-fee7989f983f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.