Skip to content

Commit 3546f38

Browse files
authoredDec 29, 2018
Update views.py
adding in option for hello route so that "Name" is not required.
1 parent 4a221ac commit 3546f38

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎hello_app/views.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ def about():
1414
def contact():
1515
return render_template("contact.html")
1616

17+
@app.route("/hello")
1718
@app.route("/hello/<name>")
18-
def hello_there(name):
19+
def hello_there(name = None):
1920
return render_template(
2021
"hello_there.html",
2122
name=name,

0 commit comments

Comments
 (0)
Please sign in to comment.