From bc6bbdfaa78d2f5ba734cf76ee8f37364db67dac Mon Sep 17 00:00:00 2001 From: Jett <55758076+Jettford@users.noreply.github.com> Date: Sat, 31 Dec 2022 04:54:46 +0000 Subject: [PATCH] I didn't break anything, what are you talking about...? --- wsgi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wsgi.py b/wsgi.py index af30ac4..ec3f9b3 100644 --- a/wsgi.py +++ b/wsgi.py @@ -8,7 +8,7 @@ def make_shell_context(): """Extend the Flask shell context.""" return {'app': app} -running_directly = __name__ == "__main__" +running_directly = __name__ == "wsgi" or __name__ == "__main__" running_under_gunicorn = not running_directly and 'gunicorn' in __name__ and 'linux' in platform # Configure development running