abelcastro.dev

Abel Castro 2025 - checkout the source code of this page on GitHub - Privacy Policy

Django and htmx

2021-08-27

HtmxDjango

With htmx is possible to build dynamic Webapps without REST-APIs and JavaScript. Just simple Django views that returns html.

You can learn more about it in this interesting Django chat podcast episode with the htmx creator Carson Gross.

I really like the idea and I wanted since a while to try htmx working together with Django and finally, I managed to work on that. I created this repository with some implementations with Django of the code examples from the htmx docs page.

**Update: **also this website has some htmx magic on it. For example the post pagination or the search function are built with htmx.