-
Notifications
You must be signed in to change notification settings - Fork 0
/
application.py
46 lines (37 loc) · 927 Bytes
/
application.py
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
36
37
38
39
40
41
42
43
44
45
46
from flask import Flask, render_template, Response, Request, url_for
app = Flask(__name__)
"""
# night_color = "#222222"
# day_color = "#F1F1F1"
# header_night_color = "#333333"
# header_day_color = "#E1E1E1"
# night_text = "white"
# day_text = "black"
page_settings = {
"bg_night_color": "#222222",
"bg_day_color": "#F1F1F1",
"header_night_color": "#333333",
"header_day_color": "#E1E1E1",
"text_night_color": "white",
"text_day_color": "black"
}
"""
@app.route("/")
def index():
return render_template("index.html")
@app.route("/About")
def about():
return "<center><h1>About</h1></center>"
@app.route("/Contact")
def contact():
return "<center><h1>Contact</h1></center>"
@app.route("/Form")
def form():
return "<center><h1>Form</h1></center>"
"""
@app.route("/results", methods=["GET", "POST"])
def results():
return render_template("results.html")
"""
if __name__ == "__main__":
app.run(debug = False)