diff options
author | Frederick Muriuki Muriithi | 2024-03-15 04:14:47 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-03-15 04:14:47 +0300 |
commit | 13bc6684cc2f90b1fdac306a2ce9a8849911b43f (patch) | |
tree | 2c61bd605fc5252e3eb048a4cafb3aaea341efd4 | |
parent | 3de1817504caf18931c4396bf36a6df6fc9f01ea (diff) | |
download | gn-uploader-13bc6684cc2f90b1fdac306a2ce9a8849911b43f.tar.gz |
Move defaults settings into qc_app module.
-rw-r--r-- | qc_app/__init__.py | 4 | ||||
-rw-r--r-- | qc_app/default_settings.py (renamed from etc/default_config.py) | 0 |
2 files changed, 2 insertions, 2 deletions
diff --git a/qc_app/__init__.py b/qc_app/__init__.py index e44f471..43831d8 100644 --- a/qc_app/__init__.py +++ b/qc_app/__init__.py @@ -21,8 +21,8 @@ def override_settings_with_envvars( def create_app(): """The application factory""" app = Flask(__name__) - app.config.from_pyfile(os.path.join( - Path(__file__).parent.parent, "etc/default_config.py")) + app.config.from_pyfile( + Path(__file__).parent.joinpath("default_settings.py")) if "QCAPP_CONF" in os.environ: app.config.from_envvar("QCAPP_CONF") # Override defaults with instance path diff --git a/etc/default_config.py b/qc_app/default_settings.py index 7a9da0f..7a9da0f 100644 --- a/etc/default_config.py +++ b/qc_app/default_settings.py |