Skip to content

Instantly share code, notes, and snippets.

View baldurh's full-sized avatar

Baldur Helgason baldurh

  • Jiko
  • Reykjavík, Iceland
View GitHub Profile
@RNCTX
RNCTX / django-template_partials-htmx-tables2-filter_search.md
Last active September 12, 2025 09:22
How to tie HTMX + django-tables2 + django-filters + django-template-partials together

Reasoning for this

It took me some time of digging through disparate docs and blog posts to piece together how to use django-tables2, htmx, django-template-partials, and django-filter, all at the same time in an optimal way for highly interactive data tables in django.
At present I am not using Alpine.js, another popular addition to this stack, due to my preference for writing plain ole javascript instead of having to learn another syntax, but that's really outside of this scope anyway, this is meant to be a how-to on the Python tools + HTMX.

Credit to the following blog posts and stackoverflow replies that were helpful in piecing this stuff together as a first time user of most of these Django packages:

Git Cheat Sheet

Commands

Getting Started

git init

or