]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
📝 Update `security/first-steps.md` (#11673)
authorAlejandra <90076947+alejsdev@users.noreply.github.com>
Mon, 3 Jun 2024 01:35:46 +0000 (20:35 -0500)
committerGitHub <noreply@github.com>
Mon, 3 Jun 2024 01:35:46 +0000 (20:35 -0500)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
docs/en/docs/tutorial/security/first-steps.md

index 7d86e453eacfb8d0d713f8a263a1ff94ea6e19da..1ec31b408ce0fe53a0e7193f31f78b18cc4ea026 100644 (file)
@@ -45,18 +45,18 @@ Copy the example in a file `main.py`:
 ## Run it
 
 !!! info
-    First install <a href="https://github.com/Kludex/python-multipart" class="external-link" target="_blank">`python-multipart`</a>.
+    The <a href="https://github.com/Kludex/python-multipart" class="external-link" target="_blank">`python-multipart`</a> 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:
 
 <div class="termy">
 
 ```console
-$ uvicorn main:app --reload
+$ fastapi dev main.py
 
 <span style="color: green;">INFO</span>:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
 ```