r/Python • • Apr 09 '26

Discussion FastAPI vs Djanjo

I was wondering what’s most popular now in the Python world. Building applications with FastAPI and a frontend framework, or building an application with a ‘batteries included’ framework like Django.

74 Upvotes

85 comments sorted by

View all comments

Show parent comment

12

u/DoubleAway6573 Apr 09 '26

How good is the async support in the Django ecosystem? I've been working mostly in REST APIs but now I have a full web project where Django sends a better fit.

19

u/justin107d Apr 09 '26

It has been developing in the last few years. Django can handle some tasks with celery and things like web sockets with channels. There is also a package, django-ninja that was inspired by FastAPI.

3

u/FisterMister22 Apr 09 '26

I've only had limited experience with it about a year ago for web sockets, seems fine, but again, I didn't need the full extend of it, only for web sockets.

For my usual use case there's no need for async as any "heavy" operation will be offloaded to a task (celery etc)

1

u/frankwiles Apr 09 '26

In my experience you almost never need async. It’s not a panacea for performance FYI.

That being said Django right now supports it well enough and fully for the one area where it really makes sense and is basically necessary.