diff options
Diffstat (limited to 'gn2/wqflask')
-rw-r--r-- | gn2/wqflask/__init__.py | 4 |
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( |