mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-26 18:38:38 -06:00
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:
parent
b2c79e86d6
commit
f7bbafa116
@ -419,7 +419,7 @@ INSTALLED_APPS = [
|
|||||||
'drf_spectacular',
|
'drf_spectacular',
|
||||||
'drf_spectacular_sidecar',
|
'drf_spectacular_sidecar',
|
||||||
]
|
]
|
||||||
if not DEBUG:
|
if not DEBUG and 'collectstatic' not in sys.argv:
|
||||||
INSTALLED_APPS.remove('debug_toolbar')
|
INSTALLED_APPS.remove('debug_toolbar')
|
||||||
|
|
||||||
# Middleware
|
# Middleware
|
||||||
|
Loading…
Reference in New Issue
Block a user