Skip to content

Commit

Permalink
Fix mismatch html view
Browse files Browse the repository at this point in the history
  • Loading branch information
greyli committed Oct 1, 2018
1 parent 9838298 commit 24f6c80
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions demos/form/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ def index():
@app.route('/html', methods=['GET', 'POST'])
def html():
form = LoginForm()
if form.validate_on_submit():
username = form.username.data
if request.method == 'POST':
username = request.form.get('username')
flash('Welcome home, %s!' % username)
return redirect(url_for('index'))
return render_template('pure_html.html', form=form)
return render_template('pure_html.html')


@app.route('/basic', methods=['GET', 'POST'])
Expand Down

0 comments on commit 24f6c80

Please sign in to comment.