From 53123ad93e3fce739cfd080ea05ecea89d43d3a0 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 29 Jul 2022 23:00:44 +0100 Subject: [PATCH] Install django-htmx --- requirements/base.in | 1 + requirements/base.txt | 3 ++- requirements/dev.txt | 3 ++- website/settings.py | 1 + 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/requirements/base.in b/requirements/base.in index e6adda1..75f5778 100644 --- a/requirements/base.in +++ b/requirements/base.in @@ -14,3 +14,4 @@ wagtail-draftail-snippet gunicorn psycopg2 djangorestframework +django-htmx diff --git a/requirements/base.txt b/requirements/base.txt index 3211705..50e790d 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -13,9 +13,10 @@ certifi==2022.6.15 # via requests charset-normalizer==2.1.0 # via requests click==8.1.3 # via rq deprecated==1.2.13 # via redis -django==4.0.6 # via -r requirements/base.in, django-filter, django-modelcluster, django-permissionedforms, django-redis, django-rq, django-taggit, django-treebeard, djangorestframework, wagtail +django==4.0.6 # via -r requirements/base.in, django-filter, django-htmx, django-modelcluster, django-permissionedforms, django-redis, django-rq, django-taggit, django-treebeard, djangorestframework, wagtail django-environ==0.9.0 # via -r requirements/base.in django-filter==21.1 # via wagtail +django-htmx==1.12.1 # via -r requirements/base.in django-modelcluster==6.0 # via wagtail django-permissionedforms==0.1 # via wagtail django-redis==5.2.0 # via -r requirements/base.in diff --git a/requirements/dev.txt b/requirements/dev.txt index b3cc1ea..e54f2b0 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -15,11 +15,12 @@ certifi==2022.6.15 # via -r requirements/base.txt, requests charset-normalizer==2.1.0 # via -r requirements/base.txt, requests click==8.1.3 # via -r requirements/base.txt, black, pip-tools, rq deprecated==1.2.13 # via -r requirements/base.txt, redis -django==4.0.6 # via -r requirements/base.txt, django-browser-reload, django-debug-toolbar, django-filter, django-modelcluster, django-permissionedforms, django-redis, django-rq, django-taggit, django-treebeard, djangorestframework, wagtail +django==4.0.6 # via -r requirements/base.txt, django-browser-reload, django-debug-toolbar, django-filter, django-htmx, django-modelcluster, django-permissionedforms, django-redis, django-rq, django-taggit, django-treebeard, djangorestframework, wagtail django-browser-reload==1.6.0 # via -r requirements/dev.in django-debug-toolbar==3.5.0 # via -r requirements/dev.in django-environ==0.9.0 # via -r requirements/base.txt django-filter==21.1 # via -r requirements/base.txt, wagtail +django-htmx==1.12.1 # via -r requirements/base.txt django-modelcluster==6.0 # via -r requirements/base.txt, wagtail django-permissionedforms==0.1 # via -r requirements/base.txt, wagtail django-redis==5.2.0 # via -r requirements/base.txt diff --git a/website/settings.py b/website/settings.py index 04d7f1b..b8db25f 100644 --- a/website/settings.py +++ b/website/settings.py @@ -70,6 +70,7 @@ MIDDLEWARE = [ "django.contrib.auth.middleware.AuthenticationMiddleware", "django.contrib.messages.middleware.MessageMiddleware", "wagtail.contrib.redirects.middleware.RedirectMiddleware", + "django_htmx.middleware.HtmxMiddleware", ] ROOT_URLCONF = "website.urls"