Skip to content

Commit 7fa979f

Browse files
jfburkhartJon Wayne Parrott
authored and
Jon Wayne Parrott
committed
Edits to reflect new app.yaml requirements regarding the CloudSQL socket connections (GoogleCloudPlatform#466)
1 parent 1188a74 commit 7fa979f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

appengine/flexible/django_cloudsql/README.md

+15
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,21 @@ which deploys to version 1, and `promote` makes version 1 the default version.
100100

101101
Now you can view the admin panel of your deployed site at https://<your-app-id>.appspot.com/admin.
102102

103+
### Production
104+
105+
Once you are ready to serve your content in production, there are several
106+
changes required for the configuration. Most notable changes are:
107+
* Add ".appspot.com" to your `ALLOWED_HOSTS`
108+
* Change the `DEBUG` variable to `False` in your settings.py file.
109+
* If you are using a Cloud SQL database
110+
instance, in order to change from `DEBUG = True`
111+
to `DEBUG = False` you will need to properly configure the database. See
112+
instructions
113+
[here](https://cloud.google.com/sql/docs/app-engine-connect#gaev2-csqlv2) and be
114+
sure to change your `app.yaml` file as well as the `HOST` key in your
115+
`DATABASES` object.
116+
117+
103118
## Contributing changes
104119

105120
* See [CONTRIBUTING.md](CONTRIBUTING.md)

0 commit comments

Comments
 (0)