From 06865d0aa9c74308495100f0855906a7de916acb Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Mon, 28 Nov 2022 20:14:30 +0000 Subject: [PATCH] Make the debug toolbar show --- app/settings.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/settings.py b/app/settings.py index 6d65fbc..6a12366 100644 --- a/app/settings.py +++ b/app/settings.py @@ -196,3 +196,12 @@ if PROFILER: # noqa - trust me its there # "region": f'{os.getenv("REGION")}', # } ) + + +def show_toolbar(request): + return DEBUG # noqa: from local imports + + +DEBUG_TOOLBAR_CONFIG = { + "SHOW_TOOLBAR_CALLBACK": show_toolbar, +}