Skip to content

Commit 0ce307c

Browse files
authored
19217 debug toolbar (#19289)
* 19217 update and re-add django-debug-toolbar to INSTALLED_APPS * 19217 remove debug if not collectstatic
1 parent 6c60a43 commit 0ce307c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netbox/netbox/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ def _setting(name, default=None):
419419
'drf_spectacular',
420420
'drf_spectacular_sidecar',
421421
]
422-
if not DEBUG:
422+
if not DEBUG and 'collectstatic' not in sys.argv:
423423
INSTALLED_APPS.remove('debug_toolbar')
424424

425425
# Middleware

0 commit comments

Comments
 (0)