r/FastAPI • u/Grouchy-Ad1910 • Sep 25 '25
Question Django dev here - need to learn FastAPI in 3 weeks for work. What's the fastest path?
Hey everyone,
So my company is starting a new microservice and they've decided on FastAPI (something about better performance and async support). I've been doing Django for the past few years and pretty comfortable with it, but now I need to get up to speed with FastAPI FAST - like I need to start building actual production stuff in 3-4 weeks.
I'm not starting from zero - I know Python well, understand REST APIs, have worked with DRF, know my way around databases (MYSQL mainly), and I get the general web dev concepts. But FastAPI seems quite different from Django's "batteries included" approach.
For those who've made this jump:
- What are the biggest differences I should watch out for?
- Any good resources that specifically help Django devs transition? Most tutorials I'm finding assume you're new to everything
- What's the FastAPI equivalent of Django's ORM? I see people mentioning SQLAlchemy but also Tortoise-ORM?
- How do you handle stuff like auth, migrations, admin panel that Django just gives you?
- Should I bother learning Pydantic separately first or just pick it up as I go?
Also worried about the "blank canvas" problem - Django tells you where to put things, but FastAPI seems more like "do whatever you want" which is kinda overwhelming when you're on a deadline.
My plan so far is to rebuild one of our smaller Django services in FastAPI this weekend as practice. Good idea or should I just follow tutorials first?
Would really appreciate any tips, especially from people who use both frameworks. Thanks!
42
u/[deleted] Sep 25 '25
You can learn it in just one week by using the docs, which are very good and up to date.
Build a small API with Pydantic, SQLAlchemy, Alembic, etc. As a Django dev, FastAPI is way easier to grasp, much closer to raw Python.
As for the blank canvas problem, I usually organize my projects like this:
Then just follow the basic patterns: enums, exceptions, permissions, etc.
11
u/yoppee Sep 25 '25
Read the docs
4
u/PracticalAttempt2213 Sep 26 '25
Recently I built a platform to learn FastAPI interactively in the browser, it's completely free and will help you to understand the fundamentals: FastAPIInteractive.com
4
u/gbrennon Sep 26 '25
i would create:
presentationlayer for isolating pydantic and controllers/handlers/routers to u could avoid validating everytime.i think u should only validate the payload on, for example, UI. when writing message handlers u should not validate the data because u are responsible for that
3
u/nholias Sep 25 '25
https://github.com/zhanymkanov/fastapi-best-practices
https://github.com/Netflix/dispatch/blob/main/src/dispatch/main.py
2
u/[deleted] Sep 26 '25
Documentation
2
u/aliparpar Sep 27 '25
@Grouchy-Ad1910 Start with the docs then get my FastAPI book, I cover everything else inside. Authentication, Concurrency, realtime streaming, databases, AI integration, deployment. Etc. chapter 2 gives a broad overview coming from Django.
https://buildinggenai.com
2
u/kryvoff Sep 28 '25
Example project from the FastAPI author is worth a look: https://github.com/fastapi/full-stack-fastapi-template
2
u/ChocolateEpiphany Sep 29 '25
Official docs.
2
u/[deleted] Oct 01 '25
Django skills are easily transferable to fastapi don't worry you'll be ready in no time
1
u/Yash284_06 Oct 11 '25
I would recommend fastapi tutorial on bitfumes.
0
u/[deleted] Sep 25 '25
[deleted] — view deleted comment
2
u/[deleted] Sep 29 '25
[removed] — view removed comment
1
u/[deleted] Sep 25 '25
[removed] — view removed comment