Hacker News new | ask | show | jobs
by Pedro_Ribeiro 579 days ago
What are the advantages of using Django over FastAPI in 2024?
3 comments

What's the advantages of using FastAPI over Django Ninja?

But to answer your question more realistically:

* Familiarity

* Easy/built-in admin

* Longevity

I would also never consider switching an existing app from one to the other.

Sentry started in 2008, FastAPI didn't exist until 2018.
Batteries included, easy to start and very fast to develop, tons of packages and resources ...

FastAPI make sense only if you write an api for a third party frontend or service.

does Django have first party support for 2 factor authentication yet?
There are packages like django-oauth-toolkit.

But what is the sense to compare on a single feature? Obviously, Django doesn't cover 100% of use cases but, usually, you choose a technology that simplify you live overall not on specific aspects.