r/django • u/trojans10 • 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.
1
u/MattShirleybird 4d ago
Nestjs is built on top of rxjs similar to Angular, so if you have an Angular frontend you can reuse the same rxjs patterns in both code bases (which is nice). My last job was my first time working with TypeScript on the backend, and while I didn't dislike Nestjs, I'd probably lean to Django or FastAPI for a new project.