You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Briefly, *azuresite/production.py* does the following:
244
233
245
234
- Inherit all settings from*azuresite/settings.py*.
246
235
- Add the fully qualified domain name of the App Service app to the allowed hosts.
247
236
- Use [WhiteNoise](https://whitenoise.evans.io/en/stable/) to enable serving static files in production. The WhiteNoise package is already included in*requirements.txt*.
248
-
- Add configuration for PostgreSQL database. The [psycopg2-binary](https://pypi.org/project/psycopg2-binary/) package is already included in*requirements.txt*.
249
237
250
-
1. In *manage.py*, change the following line:
238
+
1. In *azuresite/wsgi.py*, change the following line:
1. In *azuresite/wsgi.py*, make the same change as above.
266
-
267
-
In App Service, you use *manage.py* to run database migrations, and App Service uses *azuresite/wsgi.py* to run your Django app in production. This change in both files ensures that the production settings are used in both cases.
253
+
App Service uses *azuresite/wsgi.py* to run your Django app in production. This change ensures that the production settings are used.
0 commit comments