From 583d24c18ddb23326ebf0b4d362f98d72582d192 Mon Sep 17 00:00:00 2001 From: Conrad Date: Mon, 15 May 2017 10:43:51 -0400 Subject: [PATCH] Add lazy parameter to uwsgi config to fix database connections while multithreading --- app/config/uwsgi.ini | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/config/uwsgi.ini b/app/config/uwsgi.ini index c996d6b..5790769 100644 --- a/app/config/uwsgi.ini +++ b/app/config/uwsgi.ini @@ -20,3 +20,7 @@ logger = file:$UWSGIERR # cd into the app directory chdir = $CODEROOT module = wsgi:app + +# For multithreading use +lazy = true +lazy-apps = true -- GitLab