-
Notifications
You must be signed in to change notification settings - Fork 12
/
main.py
48 lines (39 loc) · 871 Bytes
/
main.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
from flask import Flask
from flask import render_template
app = Flask(__name__)
# import events list
from models import events
@app.route('/')
def index():
return render_template(
'index.html',
events = events.eventlist
)
@app.route('/about')
def aboutus():
return render_template(
'about.html'
)
@app.route('/schedule')
def schedule():
return render_template(
'schedule.html',
events = events.eventlist
)
@app.route('/materials')
def materials():
return render_template(
'materials.html'
)
@app.route('/materials/html5')
def html_workshop():
return render_template(
'materials/html5workshop.html'
)
@app.route('/materials/gitjquery')
def html_workshop():
return render_template(
'materials/gitjquery.html'
)
if __name__ == "__main__":
app.run()