Skip to content

Commit cecc8a0

Browse files
ryanmatswaprin
authored andcommitted
Django_cloudsql config edits (#700)
Tweaked a few placeholder names for variables users should change before testing/deploying. Also updated environment variable that changed because of flex beta 2.
1 parent 704c564 commit cecc8a0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

appengine/flexible/django_cloudsql/mysite/settings.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,15 @@
7979
'default': {
8080
'ENGINE': 'django.db.backends.mysql',
8181
'NAME': 'polls',
82-
'USER': 'root',
83-
'PASSWORD': '<your-root-password>',
82+
'USER': '<your-database-user>',
83+
'PASSWORD': '<your-database-password>',
8484
}
8585
}
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
8989
DATABASES['default']['HOST'] = '/cloudsql/<your-cloudsql-connection-string>'
90-
if os.getenv('GAE_APPENGINE_HOSTNAME'):
90+
if os.getenv('GAE_INSTANCE'):
9191
pass
9292
else:
9393
DATABASES['default']['HOST'] = '127.0.0.1'

0 commit comments

Comments
 (0)