Skip to content

Instantly share code, notes, and snippets.

@albe-rosado
Created November 22, 2016 21:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save albe-rosado/b8657f9a2a355970f216bd61f47dc06d to your computer and use it in GitHub Desktop.
Save albe-rosado/b8657f9a2a355970f216bd61f47dc06d to your computer and use it in GitHub Desktop.
@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