From fdafe569fbc74a2591345fb367db57973aad564d Mon Sep 17 00:00:00 2001 From: William Colmenares Date: Sat, 1 Jun 2019 08:05:11 -0400 Subject: [PATCH] Include flask in the wsgi file --- ungleichotpserver/wsgi.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ungleichotpserver/wsgi.py b/ungleichotpserver/wsgi.py index 1eed050..d8e0092 100644 --- a/ungleichotpserver/wsgi.py +++ b/ungleichotpserver/wsgi.py @@ -8,9 +8,14 @@ https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/ """ import os - from django.core.wsgi import get_wsgi_application +from flaskapp.app import app + +if __name__ == "__main__": + app.run() os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ungleichotpserver.settings') application = get_wsgi_application() + +