Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cecc8a0

Browse filesBrowse files
ryanmatswaprin
authored andcommitted
Django_cloudsql config edits (GoogleCloudPlatform#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
Copy full SHA for cecc8a0

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎appengine/flexible/django_cloudsql/mysite/settings.py

Copy file name to clipboardExpand all lines: appengine/flexible/django_cloudsql/mysite/settings.py
+3-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.