8000 Remove env variable · 87sanchavan/python-docs-samples@513f140 · GitHub
[go: up one dir, main page]

Skip to content

Commit 513f140

Browse files
author
Bill Prin
committed
Remove env variable
1 parent 3698bd7 commit 513f140

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

appengine/flexible/django_cloudsql/app.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ entrypoint: gunicorn -b :$PORT mysite.wsgi
66
beta_settings:
77
cloud_sql_instances: <your-cloudsql-connection-string>
88

9-
env_variables:
10-
APPENGINE_FLEXIBLE: True
11-
129
runtime_config:
1310
python_version: 3
1411
# [END runtime]

appengine/flexible/django_cloudsql/mysite/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@
8686
# In the flexible environment, you connect to CloudSQL using a unix socket.
8787
# Locally, you can use the CloudSQL proxy to proxy a localhost connection
8888
# to the instance
89-
if os.getenv('APPENGINE_FLEXIBLE'):
9089
DATABASES['default']['HOST'] = '/cloudsql/<your-cloudsql-connection-string>'
90+
if os.getenv('GAE_APPENGINE_HOSTNAME'):
9191
else:
9292
DATABASES['default']['HOST'] = '127.0.0.1'
9393
# [END dbconfig]

0 commit comments

Comments
 (0)
0