Skip to content

Commit 440850b

Browse files
committed
@PRmerger review
1 parent e168161 commit 440850b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

articles/app-service/configure-language-python.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ For App Service, you then make the following modifications:
155155
156156
Here, `FRONTEND_DIR`, to build a path to where a build tool like yarn is run. You can again use an environment variable and App Setting as desired.
157157
158-
1. Add `whitenoise` to your *requirements.txt* file. [Whitenoise](http://whitenoise.evans.io/en/stable/) (whitenoise.evans.io) is a Python package that makes it simple for a production Django app to serve it's own static files. Whitenoise specifically serves those files that are found in the folder specified by the Django `STATIC_ROOT` variable.
158+
1. Add `whitenoise` to your *requirements.txt* file. [Whitenoise](http://whitenoise.evans.io/en/stable/) (whitenoise.evans.io) is a Python package that makes it simple for a production Django app to serve its own static files. Whitenoise specifically serves those files that are found in the folder specified by the Django `STATIC_ROOT` variable.
159159
160160
1. In your *settings.py* file, add the following line for Whitenoise:
161161
@@ -181,7 +181,7 @@ For App Service, you then make the following modifications:
181181
182182
## Serve static files for Flask apps
183183
184-
If your Flask web app includes static front-end files, first follow the instructions on [managing static files](https://flask.palletsprojects.com/en/2.1.x/tutorial/static/) in the Flask documentation. For an example of serving static files in a Flask application, see the [quickstart sample Flask application](https://github.com/Azure-Samples/msdocs-python-flask-webapp-quickstart) on Github.
184+
If your Flask web app includes static front-end files, first follow the instructions on [managing static files](https://flask.palletsprojects.com/en/2.1.x/tutorial/static/) in the Flask documentation. For an example of serving static files in a Flask application, see the [quickstart sample Flask application](https://github.com/Azure-Samples/msdocs-python-flask-webapp-quickstart) on GitHub.
185185
186186
To serve static files directly from a route on your application, you can use the [`send_from_directory`](https://flask.palletsprojects.com/en/2.2.x/api/#flask.send_from_directory) method:
187187
@@ -432,7 +432,7 @@ If you're encountering this error with the sample in [Tutorial: Deploy a Django
432432

433433
#### Other issues
434434

435-
- **Passwords don't appear in the SSH session when typed**: For security reasons, the SSH session keeps your password hidden as you type. The characters are being recorded, however, so type your password as usual and press **Enter** when done.
435+
- **Passwords don't appear in the SSH session when typed**: For security reasons, the SSH session keeps your password hidden when you type. The characters are being recorded, however, so type your password as usual and press **Enter** when done.
436436

437437
- **Commands in the SSH session appear to be cut off**: The editor may not be word-wrapping commands, but they should still run correctly.
438438

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

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

512512
- 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.
513513

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

516516
Then the static file settings are configured according to the Django documentation.
517517

518-
:::code language="python" source="~/msdocs-django-postgresql-sample-app/azureproject/production.py" range="23-24" highlight="3":::
518+
:::code language="python" source="~/msdocs-django-postgresql-sample-app/azureproject/production.py" range="23-24":::
519519

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

0 commit comments

Comments
 (0)