From 0d9fd0049b945ed7d9b765926921ba92ac93c236 Mon Sep 17 00:00:00 2001 From: T'rahk Rokym Date: Wed, 9 Jul 2025 21:36:45 +0200 Subject: [PATCH] Add an additionnal panel to the admin status displaying if DEBUG is turned on --- .../project_template/project_name/settings/base.py | 1 + .../allianceauth/admin-status/overview.html | 14 ++++++++++++++ allianceauth/templatetags/admin_status.py | 1 + .../dev_setup/aa-dev-setup-wsl-vsc-v2.md | 1 + 4 files changed, 17 insertions(+) diff --git a/allianceauth/project_template/project_name/settings/base.py b/allianceauth/project_template/project_name/settings/base.py index e7327e21..973b3bb5 100644 --- a/allianceauth/project_template/project_name/settings/base.py +++ b/allianceauth/project_template/project_name/settings/base.py @@ -245,6 +245,7 @@ CACHES = { SESSION_ENGINE = "django.contrib.sessions.backends.cached_db" DEBUG = True +DISPLAY_DEBUG = True ALLOWED_HOSTS = ["*"] DATABASES = { "default": { diff --git a/allianceauth/templates/allianceauth/admin-status/overview.html b/allianceauth/templates/allianceauth/admin-status/overview.html index 17bf0012..31d4ff09 100644 --- a/allianceauth/templates/allianceauth/admin-status/overview.html +++ b/allianceauth/templates/allianceauth/admin-status/overview.html @@ -118,6 +118,20 @@ +{% if debug %} +
+
+
+
{% translate "Debug mode" %}
+

+ {% translate "Debug mode is currently turned on. Make sure to turn it off as soon as you are finished testing" %} +

+
+
+
+{% endif %} + +