new wsgi conf

This commit is contained in:
wcolmenares 2019-06-02 09:00:18 -04:00
parent fdafe569fb
commit d4d82ae1c3
3 changed files with 5 additions and 5 deletions

View file

@ -63,4 +63,4 @@ api.add_resource(MainView, '/')
api.add_resource(ProtectedView, '/protected')
if __name__ == '__main__':
app.run(host='0.0.0.0')
app.run()

4
flaskapp/wsgi.py Normal file
View file

@ -0,0 +1,4 @@
from flaskapp.app import app
if __name__ == "__main__":
app.run()

View file

@ -9,10 +9,6 @@ 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')