2
0
Эх сурвалжийг харах

19217 debug toolbar (#19289)

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

* 19217 remove debug if not collectstatic
Arthur Hanson 10 сар өмнө
parent
commit
0ce307c7fd

+ 1 - 1
netbox/netbox/settings.py

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