From d7e333b5cfa2bb9aa839f583c0fb9c8b1919c9fb Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Mon, 26 Aug 2024 20:20:33 -0700 Subject: [PATCH] fix settings.py for prod --- archivebox/core/settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/archivebox/core/settings.py b/archivebox/core/settings.py index 9131f367..f6952dce 100644 --- a/archivebox/core/settings.py +++ b/archivebox/core/settings.py @@ -465,7 +465,7 @@ ADMIN_DATA_VIEWS = { ################################################################################ # only enable debug toolbar when in DEBUG mode with --nothreading (it doesnt work in multithreaded mode) -DEBUG_TOOLBAR = True +DEBUG_TOOLBAR = False DEBUG_TOOLBAR = DEBUG_TOOLBAR and DEBUG and ('--nothreading' in sys.argv) and ('--reload' not in sys.argv) if DEBUG_TOOLBAR: try: @@ -514,6 +514,7 @@ if DEBUG: # Must delete archivebox/templates/admin to use because it relies on some things we override # visit /__requests_tracker__/ to access DEBUG_REQUESTS_TRACKER = True +DEBUG_REQUESTS_TRACKER = DEBUG_REQUESTS_TRACKER and DEBUG if DEBUG_REQUESTS_TRACKER: import requests_tracker