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.pyDATABASES = {
'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