aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask
diff options
context:
space:
mode:
authorArun Isaac2023-12-30 09:27:49 +0000
committerArun Isaac2024-01-02 13:40:56 +0000
commitff679636d3ee9ae2388fab3fe5d091ef2f00a8e3 (patch)
treeba7d697312dea528847f04f1066e173dae905912 /gn2/wqflask
parent26f17e7fff8d78ebb10528456fdbb9dee67c24d1 (diff)
downloadgenenetwork2-ff679636d3ee9ae2388fab3fe5d091ef2f00a8e3.tar.gz
Move default settings into gn2 module.
Diffstat (limited to 'gn2/wqflask')
-rw-r--r--gn2/wqflask/__init__.py4
1 files changed, 1 insertions, 3 deletions
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(