Guest User

Untitled

a guest
Nov 17th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. from flask import render_template
  2.  
  3. # Home page
  4. @app.route("/", methods=['GET', 'POST'])
  5. def home():
  6. """Home page of app with form"""
  7. # Create form
  8. form = ReusableForm(request.form)
  9.  
  10. # Send template information to index.html
  11. return render_template('index.html', form=form)
Add Comment
Please, Sign In to add comment