flask-bootstrap with two forms in one page
I plan to put two forms in one page in my flask app, one to edit general user information and the other to reset password. The template looks like this {% extends "base.html" %} {% import "bootstrap/wtf.html" as wtf %} {% block page_content %} <div class="page-header"> <h1>Edit Profile</h1> </div> {{ wtf.quick_form(form_profile, form_type='horizontal') }} <hr> {{ wtf.quick_form(form_reset, form_type='horizontal') }} <hr> {% endblock %} Each form has a submit button. In the route function, I tried to separate the two form like this form_profile = ProfileForm() form_reset = ResetForm() if form