Fix showing the debug toolbar

This commit is contained in:
Mark Veidemanis 2023-02-10 07:20:12 +00:00
parent 2050e6cb47
commit 330cc6c401
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 9 additions and 0 deletions

View File

@ -179,3 +179,12 @@ if PROFILER: # noqa - trust me its there
# "region": f'{os.getenv("REGION")}', # "region": f'{os.getenv("REGION")}',
# } # }
) )
def show_toolbar(request):
return DEBUG # noqa: from local imports
DEBUG_TOOLBAR_CONFIG = {
"SHOW_TOOLBAR_CALLBACK": show_toolbar,
}