19217 debug toolbar (#19289)

* 19217 update and re-add django-debug-toolbar to INSTALLED_APPS

* 19217 remove debug if not collectstatic
This commit is contained in:
Arthur Hanson
2025-04-23 11:21:59 -07:00
committed by GitHub
parent 6c60a4360b
commit 0ce307c7fd

View File

@@ -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