forked from nighthawkcoders/flask_portfolio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
37 lines (24 loc) · 727 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
# import "packages" from flask
from flask import Flask, render_template
# create a Flask instance
app = Flask(__name__)
# connects default URL to render index.html
@app.route('/')
def index():
return render_template("index.html")
# connects /kangaroos path to render kangaroos.html
@app.route('/kangaroos/')
def kangaroos():
return render_template("kangaroos.html")
@app.route('/walruses/')
def walruses():
return render_template("walruses.html")
@app.route('/hawkers/')
def hawkers():
return render_template("hawkers.html")
@app.route('/stub/')
def stub():
return render_template("stub.html")
# runs the application on the development server
if __name__ == "__main__":
app.run(debug=True)