From aa4d213692cb27a903fe1593e2dd3387e638b350 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Thu, 15 Jun 2023 14:40:37 +0300 Subject: Configs: Introduce Blueprints. Refactor configs in webqtlConfig. * Introduce flask Blueprints to help with decoupling the various modules from the `wqflask/__init__.py` module * Refactor settings: Create a function `base.webqtlConfig.init_app(...)` to handle setting up the configurations on the app correctly. Call this function at app creation time. * Move configuration utility functions from `utility.tools` module to `utility.configuration` module. * Use the `get_setting(...)` function to retrieve configuration settings from the application. --- wqflask/runserver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wqflask/runserver.py') diff --git a/wqflask/runserver.py b/wqflask/runserver.py index fee29be1..6dedbd24 100644 --- a/wqflask/runserver.py +++ b/wqflask/runserver.py @@ -18,7 +18,7 @@ GREEN = '\033[92m' BOLD = '\033[1m' ENDC = '\033[0m' -app_config() +app_config(app) werkzeug_logger = logging.getLogger('werkzeug') -- cgit v1.2.3