3 ms·
My app is still very much a monolith. It's just plain ol' django templates with turbolinks (so, pretty snappy to load pages). Tailwind's @apply + Django templat
by arvindamirtaa 6y ago
My app is still very much a monolith. It's just plain ol' django templates with turbolinks (so, pretty snappy to load pages). Tailwind's @apply + Django template partials give you a component-like workflow fairly easily.
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.
It may be a little more explicit and verbose at times, but I'll take that over having to reinvent multiple wheels (Auth, caching, validation, etc) when using DRF+React.
Combined with celery based task queues and the ocassional offloading of simple but time consuming tasks to serverless functions, IMHO there's very little Monolithic django can't do, even at scale.
- rasulkireev 6y agoAmen! If your app is monolith, can I ask you to share the link? I'd love to see your turbolonk implementation. Can't wrap my head around it.
- danjac 6y agoI've used turbolinks with django. It just required a small middleware: https://gitlab.com/danjac/localhub/-/blob/master/localhub/middleware/turbolinks.py https://gitlab.com/danjac/localhub/-/blob/master/localhub/mi...
- rasulkireev 6y agoThank you!