3 ms·
Have been through the Django docs tutorial and really like how it has the built in admin panel- a feature I wish rails had. But i work with rails every day and
by dieselgate 4y ago
Have been through the Django docs tutorial and really like how it has the built in admin panel- a feature I wish rails had. But i work with rails every day and am a lot more familiar with it. Does anyone have a reason to start using Django/python over rails or a node js stack?
I’ve really wanted to pivot towards python mostly because it’s so transferable to software applications outside web (scientific computing being the main “niche” here) but don’t really see it happening. Anyone willing to try and convince otherwise?
Also curious on the tradeoffs between django and flask from someone who has some experience with both
- FlyingSnake 4y agoDjango vs Flask (or FastAPI) is an eternal programmers debate. I've been on this route several time and earlier I chose FastAPI, but now my current project is Django. Django comes with batteries included which is perfect for a large set of problems like Appointment booking SaaS or similar client-server problems. It is opinionated in certain areas like ORM or MVT but gives enough leeway in others like addons like DRF and templating. It does strict MVT which makes it unfashionable in µservices and DDD contexts. But once you make peace with the ecosystem and choices, the absolute speed you get in terms or releasing features is phenomenal. Apart from inbuilt support for security, templating, documentation, Django also plays really well with 3rd party tools like heavyweight frontend frameworks (React) or lightweight libs (HTMX+AlpineJS). It's ecosystem is also great and you can easily setup Social auth or custom crispy forms in a day or so. And the cherry on top if Django admin which is highly customizable and unbeatable.
- canadianfella 4y ago[dead]
- JodieBenitez 4y ago> Also curious on the tradeoffs between django and flask from someone who has some experience with both That's me. TLDR: Context is E-commerce apps. Best experience is Django. By large. For anything that looks like a content management system, use Django. That's literally what it's for, and it's unmatched in this space. If you want to make a backend for your react/vue/svelte frontend, maybe look at Fastapi. Or better yet, use Go. But Flask... it's a no-go for me in all use cases. Too much fiddling.
- Nextgrid 4y agoIf you want a CMS, I'd suggest Wagtail. It's still Django under the hood (and in fact you can use plain Django concepts there) but provides a good set of tooling for CMS-y stuff that you'd otherwise have to build manually.