Explorar o código

19217 debug toolbar (#19289)

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

* 19217 remove debug if not collectstatic
Arthur Hanson hai 1 ano
pai
achega
0ce307c7fd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      netbox/netbox/settings.py

+ 1 - 1
netbox/netbox/settings.py

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