Skip to content

Commit 5c4a73e

Browse files
Merge pull request #227925 from Venkateshdodda-MSFT/patch-33
(AzureCXP) fixes MicrosoftDocs/azure-docs#105468
2 parents fbd709b + 7c4c247 commit 5c4a73e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/app-service/tutorial-python-postgresql-app.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -519,15 +519,15 @@ The [Django sample application](https://github.com/Azure-Samples/msdocs-django-p
519519

520520
- Django validates the HTTP_HOST header in incoming requests. The sample code uses the [`WEBSITE_HOSTNAME` environment variable in App Service](reference-app-settings.md#app-environment) to add the app's domain name to Django's [ALLOWED_HOSTS](https://docs.djangoproject.com/en/4.1/ref/settings/#allowed-hosts) setting.
521521

522-
:::code language="python" source="~/msdocs-django-postgresql-sample-app/azureproject/production.py" range="6" highlight="3":::
522+
:::code language="python" source="~/msdocs-django-postgresql-sample-app/azureproject/production.py" range="6-8" highlight="3":::
523523

524524
- Django doesn't support [serving static files in production](https://docs.djangoproject.com/en/4.1/howto/static-files/deployment/). For this tutorial, you use [WhiteNoise](https://whitenoise.evans.io/) to enable serving the files. The WhiteNoise package was already installed with requirements.txt, and its middleware is added to the list.
525525

526-
:::code language="python" source="~/msdocs-django-postgresql-sample-app/azureproject/production.py" range="11-14" highlight="14":::
526+
:::code language="python" source="~/msdocs-django-postgresql-sample-app/azureproject/production.py" range="11-16" highlight="14":::
527527

528528
Then the static file settings are configured according to the Django documentation.
529529

530-
:::code language="python" source="~/msdocs-django-postgresql-sample-app/azureproject/production.py" range="23-24":::
530+
:::code language="python" source="~/msdocs-django-postgresql-sample-app/azureproject/production.py" range="25-26":::
531531

532532
For more information, see [Production settings for Django apps](configure-language-python.md#production-settings-for-django-apps).
533533

0 commit comments

Comments
 (0)