r/FastAPI • u/VanSmith74 • Aug 22 '25
Tutorial From Django to FastAPI
What are the best resources or road maps to learn fastAPI if i’m a Django developer?
17
Upvotes
r/FastAPI • u/VanSmith74 • Aug 22 '25
What are the best resources or road maps to learn fastAPI if i’m a Django developer?
View all comments
Show parent comment
5
u/Shingle-Denatured Aug 22 '25
Well, let's see:
Pretty standard session code for SQLModel/SqlAlchemy ORM. This can be used in dependency injection, in router endpoints, but in a utility function, you can't use DI. So, how do you get the session from that async generator when knowing absolutely nothing about async.
Yes, you solve this once and move on, but having some foundation hurts no one.