uv/docs/guides
Den Kasyanov 0ceefb3c88
Update FastAPI integration docs (#6833) (#6850)
## Summary

- Fixed the directory structure and commands for the second scenario
#6833
- Added a headline "Migrating an existing FastAPI project" because the
first part looks like a migration scenario, but didn't have its own
section before.
- Added explicit `--app` flags to commands to emphasize that the
commands create an Application project. Although maybe unnecessary
considering that `--app` is now default.
- Added instructions for testing that the dev server and Docker image
work correctly
- Took the liberty of adding a `project` at the root of all directory
structures and appropriate commands.
- With explicitly defined root directory it is easier to differentiate
between the `project` root directory and FastAPI's `app` directory.
- Without it it could be less obvious for developers less familiar with
FastAPI. Had a similar issue when started using Django several years
ago.
- If I left `app` in the command, then after copying the **app
directory** from https://github.com/astral-sh/uv-fastapi-example the
path would be `app/app/...`.
- Cleaned up glyphs in tree sctructures that were copied from FastAPI
docs.

## Caveats

- On project initialization `hello.py` is created. It is not reflected
in directory structure trees in this PR and may be slightly confusing
for developers less familiar with uv.
- I believe it will be soon addressed in #6750 and after that the docs
will reflect actual directory structure.
2024-08-30 10:00:26 -04:00
..
integration Update FastAPI integration docs (#6833) (#6850) 2024-08-30 10:00:26 -04:00
index.md Add FastAPI guide to overview (#6603) 2024-08-25 13:11:10 +00:00
install-python.md docs: use stricter validation options (#6096) 2024-08-14 19:27:22 -05:00
projects.md Update project documentation for the application / library concepts (#6718) 2024-08-27 16:22:31 -05:00
publish.md Improvements to the application and library documentation (#6726) 2024-08-27 23:15:12 +00:00
scripts.md Add docs for inline exclude newer (#6831) 2024-08-29 15:44:47 -05:00
tools.md docs: made uvx note more explict (#6546) 2024-08-23 17:17:37 -05:00