From ff679636d3ee9ae2388fab3fe5d091ef2f00a8e3 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Sat, 30 Dec 2023 09:27:49 +0000 Subject: Move default settings into gn2 module. --- gn2/wqflask/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'gn2/wqflask') diff --git a/gn2/wqflask/__init__.py b/gn2/wqflask/__init__.py index 9b714868..bca95275 100644 --- a/gn2/wqflask/__init__.py +++ b/gn2/wqflask/__init__.py @@ -48,9 +48,7 @@ app = Flask(__name__) # See http://flask.pocoo.org/docs/config/#configuring-from-files # Note no longer use the badly named WQFLASK_OVERRIDES (nyi) -default_settings_file = Path(Path(__file__).parent.parent.parent, - "etc/default_settings.py") -app.config.from_pyfile(default_settings_file) +app.config.from_object('gn2.default_settings') app.config.from_envvar('GN2_SETTINGS') app.jinja_env.globals.update( -- cgit v1.2.3