Skip to content

Commit 3546f38

Browse files
authored
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

Lines changed: 2 additions & 1 deletion
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/")
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)