-
Notifications
You must be signed in to change notification settings - Fork 0
/
application.py
38 lines (31 loc) · 990 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
from flask import *
application = Flask(__name__)
# app.config['TEMPLATES_AUTO_RELOAD'] = True
application.secret_key = 'asdjfksa'
@application.route('/', methods=['GET', 'POST'])
def index():
# GET Request for Index Template
print('Home Page')
return render_template('index.html')
@application.route('/about', methods=['GET', 'POST'])
def about():
# About page
print("About Page")
return render_template('about.html')
@application.route('/experience', methods=['GET', 'POST'])
def experience():
# Experience Page
print('Experience Page')
return render_template('experience.html')
@application.route('/classes', methods=['GET', 'POST'])
def classes():
# Class Page
print('Class Info')
return render_template('classes.html')
@application.route('/contact', methods=['GET', 'POST'])
def contact():
# Contact Page
print('Contact Info')
return render_template('contact.html')
if __name__ == '__main__':
application.run()