Pārlūkot izejas kodu

19217 debug toolbar (#19289)

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

* 19217 remove debug if not collectstatic
Arthur Hanson 9 mēneši atpakaļ
vecāks
revīzija
0ce307c7fd
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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