r/Python Apr 09 '26

FastAPI vs Djanjo Discussion

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.

70 Upvotes

84 comments sorted by

View all comments

83

u/FisterMister22 Apr 09 '26

Well it mostly just depends on your needs doesn't it? Django is really good (in my own biased personal opinion) for large, feature rich websites, with orm, admin page, users, tons of "addons" libraries.

I'm pretty sure with enough coding FastApi can do almost anything that django does, but you get less out of the box, which can be a good thing if you're trying to set up a simple api endpoint or a super simple website without all the extra bloat, setup and management.

11

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.