From: Alejandra <90076947+alejsdev@users.noreply.github.com> Date: Mon, 3 Jun 2024 01:35:46 +0000 (-0500) Subject: 📝 Update `security/first-steps.md` (#11673) X-Git-Tag: 0.111.1~100 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3641c1ea5563aa91cd7e58f8fbf5b30c7c2f6f55;p=thirdparty%2Ffastapi%2Ffastapi.git 📝 Update `security/first-steps.md` (#11673) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- diff --git a/docs/en/docs/tutorial/security/first-steps.md b/docs/en/docs/tutorial/security/first-steps.md index 7d86e453ea..1ec31b408c 100644 --- a/docs/en/docs/tutorial/security/first-steps.md +++ b/docs/en/docs/tutorial/security/first-steps.md @@ -45,18 +45,18 @@ Copy the example in a file `main.py`: ## Run it !!! info - First install `python-multipart`. + The `python-multipart` package is automatically installed with **FastAPI** when you run the `pip install fastapi` command. - E.g. `pip install python-multipart`. + However, if you use the `pip install fastapi-slim` command, the `python-multipart` package is not included by default. To install it manually, use the following command: - This is because **OAuth2** uses "form data" for sending the `username` and `password`. + `pip install python-multipart` Run the example with:
```console -$ uvicorn main:app --reload +$ fastapi dev main.py INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit) ```