mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-16 04:02:52 -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
6c60a4360b
commit
0ce307c7fd
@ -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