We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa00858 commit c14e5a6Copy full SHA for c14e5a6
src/app.py
@@ -4,16 +4,20 @@
4
5
6
@app.route('/')
7
-def index():
+def index():
8
+ print('Request for index page received')
9
return render_template('index.html')
10
11
12
@app.route('/hello', methods=['POST'])
13
def hello():
14
name = request.form.get('name')
15
+
16
if name:
17
+ print('Request for hello page received with name=%s' % name)
18
return render_template('hello.html', name = name)
19
else:
20
+ print('Request for hello page received with no name or blank name -- redirecting')
21
return redirect(url_for('index'))
22
23
0 commit comments