Skip to content Skip to sidebar Skip to footer

Flask Argument Of Type '_RequestGlobals' Is Not Iterable

When I tried to use Flask-WTForms, I followed these steps: from flask_wtf import Form from wtforms import StringField, PasswordField from wtforms.validators import DataRequired, Em

Solution 1:

This is due to the name of your view function. Just change its name. It should work fine.

@app.route('/test',methods=['GET','POST'])
def my_form(): # See this line
    form = EmailPasswordForm()
    return render_template('form.html',
       title = 'Sign In',
       form = form)

Post a Comment for "Flask Argument Of Type '_RequestGlobals' Is Not Iterable"