-
Notifications
You must be signed in to change notification settings - Fork 0
/
server.py
52 lines (33 loc) · 1.32 KB
/
server.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
47
48
49
50
51
52
import flask
from flask import Flask, render_template
import os
directory = os.getcwd()
print(directory)
app = Flask(__name__,template_folder=directory)
@app.route('/home')
async def home():
"""
This is function handles the file for the main homepage `index.html`.
"""
print(directory)
message_to_sponser = """
Dear Boeing & DCE,
We are sincerely honored to have been accepted as the recipient of the $750 grant for each of our robotics teams. Thank you for your generosity, as this will allow us to reach limits we could not have reached otherwise with our robots.
As we compete in various robotics competitions, working towards success, we will always be extremely thankful for your thoughtful gift. Because of your grant, we hope to find ourselves at the state championship for the FTC Robotics competition in 2023.
Thank you again for your thoughtful and generous gift.
\n- On behalf of the Salesian Robotics Teams
"""
return render_template("index.html",sponsor_message=message_to_sponser)
@app.route('/about')
async def about():
"""
This is for the about us page
"""
return render_template("about.html")
@app.route('/events')
async def events():
"""
"""
return render_template('events.html')
if __name__ == app.import_name:
app.run(host='0.0.0.0',port=5000,debug=True)