In 2025, how much does it still make sense to go the Django way vs FastAPI ? Looking for well founded opinions. Not controversy.
Django 5.2 Released
11–20 of 25 posts
Re: Django 5.2 Released
#12In 2025, how much does it still make sense to go the Django way vs FastAPI ? Looking for well founded opinions. Not controversy.
Re: Django 5.2 Released
#13In 2025, how much does it still make sense to go the Django way vs FastAPI ? Looking for well founded opinions. Not controversy.
Re: Django 5.2 Released
#14In 2025, how much does it still make sense to go the Django way vs FastAPI ? Looking for well founded opinions. Not controversy.
Django takes care of a lot of common functionality for you. The biggest things for me are:
- Authentication: this includes safely handling sessions, cookies, password hashes as well as integrations with SSO providers via libraries like Social Django.
- ORM: love it or hate it, the ORM just does everything. You mostly don't need to worry or think about migrations or database support.
- Admin panel: the builtin admin panel is a great way to get a quick UI that can, in some cases, handle a pretty big swath of the UI needs for your app.
With that said, there are some things that I LOVED about FastAPI. Using pydantic for serialization is way nicer than the serializers you get from Django Rest Framework. The DRF serializers just feel slow and antiquated after using pydantic. FastAPI is also much lighter weight, and works great if you just need a quick and dirty API server.
I think that my recommendation would be to use FastAPI for microservices and Django for anything that needs to handle more than a few REST API endpoints. All the extra functionality in Django is great if you want to build a production monolith, but all those extra features are unnecessary bloat for microservices.
Re: Django 5.2 Released
#15I just started using Django a few weeks ago, but it's so much more flexible than Supabase/Firebase. I feel like I have much better control now.
If you know exactly the product you are making and don't need to iterate much on the domain model, frontend-oriented frameworks like Supabase and FastAPI make sense.
Re: Django 5.2 Released
#16In 2025, how much does it still make sense to go the Django way vs FastAPI ? Looking for well founded opinions. Not controversy.
Re: Django 5.2 Released
#17In 2025, how much does it still make sense to go the Django way vs FastAPI ? Looking for well founded opinions. Not controversy.
I've been developing in Django with Django Rest Framework for 10+ years and just recently built my first FastAPI project, so I may be a little bit biased here. Django takes care of a lot of common functionality for you. The biggest things for me are: - Authentication: this includes safely handling sessions, cookies, password hashes as well as integrations with SSO providers via libraries like Social Django. - ORM: lo…
I have used DRF in the past but I am a bit worried about it future. Discussion here: https://news.ycombinator.com/item?id=43510495
Django Ninja looks promising.
Re: Django 5.2 Released
#18I just started using Django a few weeks ago, but it's so much more flexible than Supabase/Firebase. I feel like I have much better control now.
I think the flexibility and agility in domain modeling is the magic sauce of ORMs like Django. The Model definition directly drives migrations and form generation (incl Admin GUI). If you know exactly the product you are making and don't need to iterate much on the domain model, frontend-oriented frameworks like Supabase and FastAPI make sense.
A lot of things, like CRUD editing in admin, is just done for you in Django.
My other issue with Supabase is just how difficult hosting actually is. Requires a whole lot of magic/weird undocumented trickery. Vs Django which just works.
It probably really depends on what you need to build though.
Re: Django 5.2 Released
#19In 2025, how much does it still make sense to go the Django way vs FastAPI ? Looking for well founded opinions. Not controversy.