Spaces:
Sleeping
Sleeping
Commit ·
919dc7f
1
Parent(s): 75ab4e4
fix url error.
Browse files- flask_app/flask_app.py +1 -1
flask_app/flask_app.py
CHANGED
|
@@ -29,7 +29,7 @@ def hello(name=None):
|
|
| 29 |
def form():
|
| 30 |
if request.method == "POST":
|
| 31 |
username = request.form.get("username")
|
| 32 |
-
return redirect(url_for("hello", name=username)) # 提交后跳转到打招呼页面
|
| 33 |
return """
|
| 34 |
<form method="post">
|
| 35 |
<label>输入你的名字:</label>
|
|
|
|
| 29 |
def form():
|
| 30 |
if request.method == "POST":
|
| 31 |
username = request.form.get("username")
|
| 32 |
+
return redirect(url_for("./hello", name=username)) # 提交后跳转到打招呼页面
|
| 33 |
return """
|
| 34 |
<form method="post">
|
| 35 |
<label>输入你的名字:</label>
|