diff options
author | Frederick Muriuki Muriithi | 2022-04-14 12:07:42 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-04-14 12:07:42 +0300 |
commit | 4bbbeb3f477c74cd84a4f4b5cabe3d05e743b510 (patch) | |
tree | 06d2f50b1fbe1d06650a113be02eaf4cbb6616b8 /wqflask | |
parent | 1cbbe2d1da76d90014de089867b57eaa80f2f786 (diff) | |
download | genenetwork2-4bbbeb3f477c74cd84a4f4b5cabe3d05e743b510.tar.gz |
Register the port in the app configs
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wqflask/wqflask/__init__.py b/wqflask/wqflask/__init__.py index 118a7ff3..332e248c 100644 --- a/wqflask/wqflask/__init__.py +++ b/wqflask/wqflask/__init__.py @@ -35,11 +35,12 @@ app = Flask(__name__) # Note no longer use the badly named WQFLASK_OVERRIDES (nyi) app.config.from_envvar('GN2_SETTINGS') -DB_HOST, DB_USER, DB_PASS, DB_NAME = parse_db_url(app.config.get('SQL_URI')) +DB_HOST, DB_USER, DB_PASS, DB_NAME, DB_PORT = parse_db_url(app.config.get('SQL_URI')) app.config["DB_HOST"] = DB_HOST app.config["DB_USER"] = DB_USER app.config["DB_PASS"] = DB_PASS app.config["DB_NAME"] = DB_NAME +app.config["DB_PORT"] = DB_PORT app.jinja_env.globals.update( undefined=jinja2.StrictUndefined, |