oussama-he / django-htmx-todomvc

An example of implementation of TodoMVC using Django and htmx

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

django-htmx-todomvc

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

demo : https://django-htmx-todomvc.herokuapp.com/

About

An example of implementation of TodoMVC using Django and htmx

License:BSD 2-Clause "Simplified" License


Languages

Language:JavaScript 88.6%Language:Python 9.1%Language:HTML 2.3%Language:Procfile 0.0%