TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Anyone still doing monolithic Django?

2 点作者 fruiapps超过 4 年前
Printing a hello world over kubernetes cluster is an overkill, so are multiple microservices when you do not need them. I loved monolithic django, but with the advent of microservices architecture and modern JS libraries react, vue, and the likes, here is what you got to do<p>Create a DRF Backend<p>Take care of authentication at both ends<p>Build your SPA in a modern JS framework.<p>The good is modularity, maintainability, better UX controls, super interactive UIs, and the likes, the bad is you need to write more code. In simple cases the good old django templates is good enough. Is anyone still doing them? I love the organised new age FE framework code, the imports that come with ES6.<p>Is anyone still doing monolith with django template and ES6. If so, mind sharing your workflow, and libraries?

3 条评论

midrus超过 4 年前
I do! Usually together with Unpoly for ajax stuff and tailwind for styling. Also, I prefer jinja2 templates because with the &quot;macros&quot; feature you can do easy to reuse components.
Tolexx超过 4 年前
I still do monolithic Django with just a sprinkle of js where necessary. I use the following libraries: * Django-allauth for authentication * Django-bootstrap4 for styling * Django-ckeditor atimes for rich text fields etc.<p>Django monolithic is still good for fast development and quick MVP release. Also SSR is quite and gives fast page loads
评论 #24504634 未加载
arvindamirtaa超过 4 年前
My app is still very much a monolith. It&#x27;s just plain ol&#x27; django templates with turbolinks (so, pretty snappy to load pages). Tailwind&#x27;s @apply + Django template partials give you a component-like workflow fairly easily.<p>And JS libs like Alpine, Stimulus, or plain old jQuery (as much as people may hate it) give you all the UI interactivity and reactivity you can hope for from the modern frameworks.<p>It may be a little more explicit and verbose at times, but I&#x27;ll take that over having to reinvent multiple wheels (Auth, caching, validation, etc) when using DRF+React.<p>Combined with celery based task queues and the ocassional offloading of simple but time consuming tasks to serverless functions, IMHO there&#x27;s very little Monolithic django can&#x27;t do, even at scale.
评论 #24607242 未加载