Created
November 22, 2016 21:24
-
-
Save albe-rosado/b8657f9a2a355970f216bd61f47dc06d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@app.route('/', methods=['GET', 'POST']) | |
def index(): | |
form = ContactForm() | |
if form.validate_on_submit(): | |
# ... do whatever you need | |
form.reset() | |
# ... | |
return render_template('index.html', form=form) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment