From 7cd9f5fcea8f16b891d96b6e2fa17bb3c150726e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Br=C3=BCck?= Date: Thu, 14 Nov 2024 13:50:08 +0100 Subject: [PATCH] Add django-hijack --- config/settings/base.py | 3 +++ config/urls.py | 1 + requirements/base.txt | 1 + 3 files changed, 5 insertions(+) diff --git a/config/settings/base.py b/config/settings/base.py index 5f25146..965cb1e 100644 --- a/config/settings/base.py +++ b/config/settings/base.py @@ -118,6 +118,8 @@ "wagtailmenus", "djangoql", "wagtail_non_admin_draftail", + "hijack", + "hijack.contrib.admin", ] @@ -191,6 +193,7 @@ "wagtail.contrib.redirects.middleware.RedirectMiddleware", "bakeup.core.middleware.PersistentFiltersMiddleware", "allauth.account.middleware.AccountMiddleware", + "hijack.middleware.HijackUserMiddleware", ] # STATIC diff --git a/config/urls.py b/config/urls.py index f0f29c1..367f5d3 100644 --- a/config/urls.py +++ b/config/urls.py @@ -41,6 +41,7 @@ "wagtail_non_admin_draftail.urls", namespace="wagtail_non_admin_draftail" ), ), + path("hijack/", include("hijack.urls")), ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) diff --git a/requirements/base.txt b/requirements/base.txt index 8cea64a..4ba204b 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -33,3 +33,4 @@ django-autocomplete-light==3.11.0 mjml-python==1.3.3 mrml==0.1.14 djangoql==0.18.1 +django-hijack==3.7.0