From 7324d9c230968785c0386b611b8b6e08cf59848e Mon Sep 17 00:00:00 2001 From: eclipse Date: Tue, 6 May 2025 12:16:58 +0200 Subject: [PATCH] disabled redirect interception for debug_toolbar --- the_works/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/the_works/__init__.py b/the_works/__init__.py index 53d740c..5fb1b6f 100644 --- a/the_works/__init__.py +++ b/the_works/__init__.py @@ -34,6 +34,7 @@ def create_app(): ### DEBUG toolbar = DebugToolbarExtension(app) + app.config['DEBUG_TB_INTERCEPT_REDIRECTS'] = False app.config["SQLALCHEMY_ECHO"] = True app.config['SQLALCHEMY_RECORD_QUERIES'] = os.getenv("SQLALCHEMY_RECORD_QUERIES") print(f"Current Environment: " + app.config['ENVIRONMENT'])