-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
27 lines (21 loc) · 687 Bytes
/
Copy pathapp.py
File metadata and controls
27 lines (21 loc) · 687 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
from flask import Flask, escape, request, render_template, make_response, redirect, url_for
from flask_fontawesome import FontAwesome
app = Flask(__name__)
fa = FontAwesome(app)
@app.route('/')
def main():
return render_template('divanalysis.html')
#@app.route('/analys')
#def utdelning():
# return render_template('divanalysis.html')
@app.route('/instruktioner')
def instructions():
return render_template('instructions.html')
@app.route('/blogglista')
def calculator():
return "todo" # render_template('bloglist.html')
@app.errorhandler(404)
def page_not_found(e):
return render_template('404.html'), 404
if __name__ == '__main__':
app.run(host='0.0.0.0')