Hacker News new | ask | show | jobs
by boolean 1169 days ago
The old paradigm is new again. Combining Django with HTMX, you get the simplicity of rendering HTML on the server side and not deal with bloated and over-engineered Javascript frameworks. Flask/Django with HTMX and Tailwindcss is a fantastic combination and my current preferred stack. I also add Alpinejs to this mix for interactivity. Really enjoying the heightened productivity that this setup provides.
2 comments

This looks really interesting. I haven't come across HTMX before, but I'll give it a look.
I tried out htmx + django a little but got stuck doing something more than trivial. Do you have an example of a starter project that has intermediate concepts demonstrated? Maybe this can help me get over the hump.
Another solid alternative to htmx is unpoly (https://unpoly.com/) and there's an exhaustive writeup on how to use unpoly with django as well here https://www.spapas.net/2023/04/04/using-unpoly-with-django/