new wsgi conf
This commit is contained in:
parent
fdafe569fb
commit
d4d82ae1c3
3 changed files with 5 additions and 5 deletions
|
@ -63,4 +63,4 @@ api.add_resource(MainView, '/')
|
||||||
api.add_resource(ProtectedView, '/protected')
|
api.add_resource(ProtectedView, '/protected')
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
app.run(host='0.0.0.0')
|
app.run()
|
||||||
|
|
4
flaskapp/wsgi.py
Normal file
4
flaskapp/wsgi.py
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
from flaskapp.app import app
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
app.run()
|
|
@ -9,10 +9,6 @@ https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
|
||||||
|
|
||||||
import os
|
import os
|
||||||
from django.core.wsgi import get_wsgi_application
|
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')
|
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ungleichotpserver.settings')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue