Why I preferred using Django over FastAPI... When I started learning backend development, I came across two of the most popular python frameworks - Django and FastAPI. At start I thought why two different frameworks for almost the same purpose? While FastAPI impressed me with its speed and modern design with user friendly way, I found myself learning Django in my initial projects. The main reason was its simplicity and structure. With Django setting things up was no big deal as it provides features like built in authentication, admin panel, ORM (Object Relational Mapping). So, connecting things with each other was quite handy. On the other hand, FastAPI felt powerful too. From what I’ve learned, it’s amazing for building high-performance APIs and working with async systems. But since I haven’t built anything with it yet, I didn’t feel confident choosing it as my starting point. What I realized is this: Choosing a framework isn’t just about what’s “better” — it’s about what fits your current stage. I wanted to understand backend fundamentals, build complete projects, and get comfortable with how everything works together. Django helped me do exactly that. Maybe in the future, when I start working on scalable APIs or ML-based systems, FastAPI will make more sense. But for now, Django just feels right. 😊 #Django #Python #FastAPI
Swaroop Pichare this is a very grounded take. Django does a great job of helping you understand how everything fits together without having to assemble too many pieces upfront. FastAPI feels more like a tool you grow into when you start needing finer control or performance.
Actually Django is better than Fastapi. with Django, you can develop dedicated apis using Django Ninja that performs almost like the Fastapi in production or better still, you can use Django with its templating engine to develop the entire website from backend to frontend. The major downside of using Django with its templating engine is that you can't achieve SPA with ease as navigation from one page to the next requires full page reload. Another issue is styling Django forms rendered from the backend where you render something like {{ form.as_p }} on the templates. Real Pain to style 😀 !
Why compare fastapi with Django? They both serve different use cases? For a microservices in most scenarios, fastapi is the go to. If you want to compare, maybe fastapi vs flask would be better.
The 'batteries included' aspect of Django is its biggest strength. People often chase FastAPI for the raw speed, but for complex backends, having a built-in ORM and Admin panel saves so much time on the 'boring' boilerplate. It lets you focus on the actual business logic instead of figuring out which third-party library to use for authentication.
Django
Every framework has its own pros and cons none is perfect. Instagram uses Django and handles billions of requests. I like FastAPI, but I prefer Robyn because it’s one of the fastest Python web frameworks. In the end, it all depends on you. 😊 Swaroop Pichare
Django
why we need fastAPI, we already have golang. You did it right.
Honestly I just prefer Django when it comes to huge projects, I have used fastapi but there is no place like Django
what u will choose for microservices swaroop django or fastapi?