mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-26 18:38:38 -06:00
19217 remove debug if not collectstatic
This commit is contained in:
parent
c69bea4a44
commit
b987b725d3
@ -419,6 +419,8 @@ INSTALLED_APPS = [
|
|||||||
'drf_spectacular',
|
'drf_spectacular',
|
||||||
'drf_spectacular_sidecar',
|
'drf_spectacular_sidecar',
|
||||||
]
|
]
|
||||||
|
if not DEBUG and 'collectstatic' not in sys.argv:
|
||||||
|
INSTALLED_APPS.remove('debug_toolbar')
|
||||||
|
|
||||||
# Middleware
|
# Middleware
|
||||||
MIDDLEWARE = [
|
MIDDLEWARE = [
|
||||||
|
Loading…
Reference in New Issue
Block a user