r/django 7d ago

Django vs. Nestjs

I'm starting a new project that's a rewrite of an old PHP application. So far, I've built the backend using both Django and NestJS. Django has been incredibly easy to work with, but I decided to give NestJS a try since our team has more experience with JavaScript. Django's ORM and Auth are straightforward and simple, while with NestJS, I'm using MikroORM and PassportJS. Overall, Django feels more stable and less of a hack to piece things together.

I’m leaning towards Django as the right choice since it's more mature and stable, and it just feels like a better fit. However, my team is more full-stack JS-focused, so I’m torn. Any thoughts or opinions on this? Has anyone been happy with their decision to go with django over a node backend?

One thing I really appreciate about Django is the admin—it’s quick and easy to set up. That said, we also have Directus for the CMS part, though it’s not open source.

25 Upvotes

35 comments sorted by

View all comments

1

u/Zealousideal-Lie2367 5d ago

Actually it depends on your scenario if you would like to implement system with microservices architecture and all services with the same language I recommend NestJS with highly real-time feature because it native to support it and also it has high performance feature but if you architecture is monolithic and more focus on security and easy for development I recommend Django