-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
35 lines (29 loc) · 874 Bytes
/
app.py
File metadata and controls
35 lines (29 loc) · 874 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from werkzeug.wsgi import DispatcherMiddleware
import front as frontend
from front import app as front
#from Tema1 import tema_GUI as tema1
from Tema1.tema_GUI import app as tema1
from Tema2.tema_GUI import app as tema2
from Tema3.tema_GUI import app as tema3
from Tema5.tema_GUI import app as tema5
from Tema6.tema_GUI import app as tema6
# flask version
from flask import Flask
application = Flask(__name__)
application.wsgi_app = DispatcherMiddleware(front, {
'/tema1': tema1,
'/tema2': tema2,
'/tema3': tema3,
'/tema5': tema5,
'/tema6': tema6
})
application.run(debug=True)
# wsgi version
# from werkzeug.serving import run_simple
#
# application = DispatcherMiddleware(frontend, {
# '/tema1': tema1
# })
# if __name__ == '__main__':
# run_simple('localhost', 5000, application,
# use_reloader=True, use_debugger=True, use_evalex=True)