HTMX packaged in a Django reusable app.
pip install django-js-lib-htmx
-
Add
"js_lib_htmx"
to yourINSTALLED_APPS
setting like this::INSTALLED_APPS = [ ... "js_lib_htmx", ... ]
-
In your template use:
{% load static %}
And one of:
<script src="{% static "htmx/htmx.js" %}"></script> <script src="{% static "htmx/htmx.min.js" %}"></script>