aboutsummaryrefslogtreecommitdiff
path: root/wqflask/run_gunicorn.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-06-20 14:33:22 +0300
committerzsloan2023-06-22 01:33:14 -0500
commitb36758b1de6e7609129359d7f48a92558834e22d (patch)
tree224dc77b66c40de829ba86930552b571e50df69e /wqflask/run_gunicorn.py
parent9a3d761cbde705204db64bc7e70e2defc02f2c64 (diff)
downloadgenenetwork2-b36758b1de6e7609129359d7f48a92558834e22d.tar.gz
Create new entry-point module to reduce chances of circular imports.
This commit creates a new entry-point module (wqflask/gn2_main.py) and imports all the other modules that import the application object with something like: `from wqflask import app` This breaks the subtle circular-import cycle that tends to cause a lot of inconveniences when developing the application.
Diffstat (limited to 'wqflask/run_gunicorn.py')
-rw-r--r--wqflask/run_gunicorn.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/run_gunicorn.py b/wqflask/run_gunicorn.py
index 03f310eb..af117466 100644
--- a/wqflask/run_gunicorn.py
+++ b/wqflask/run_gunicorn.py
@@ -9,7 +9,7 @@
print("===> Starting up Gunicorn process")
-from wqflask import app
+from gn2_main import app
from utility.startup_config import app_config
app_config()