From 0ce307c7fd630999c0c7a01c61856576c68f9c4b Mon Sep 17 00:00:00 2001 From: Arthur Hanson Date: Wed, 23 Apr 2025 11:21:59 -0700 Subject: [PATCH] 19217 debug toolbar (#19289) * 19217 update and re-add django-debug-toolbar to INSTALLED_APPS * 19217 remove debug if not collectstatic --- netbox/netbox/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/netbox/settings.py b/netbox/netbox/settings.py index 0248fa888..dbbac6ec4 100644 --- a/netbox/netbox/settings.py +++ b/netbox/netbox/settings.py @@ -419,7 +419,7 @@ INSTALLED_APPS = [ 'drf_spectacular', 'drf_spectacular_sidecar', ] -if not DEBUG: +if not DEBUG and 'collectstatic' not in sys.argv: INSTALLED_APPS.remove('debug_toolbar') # Middleware