Here is an example of TodoMVC implementation using Django and htmx, with a little bit of hyperscript.
This implementation is only an example and there are many other ways to do it.
The objectives of this project were the following:
- to use the generic django classes for the views
- try to keep the same "logic" as the generic Django views (e.g. make redirects after the create/update/delete/... using HX-Location from htmx 1.8)
- use as few "partial" views as possible