Skip to content Skip to sidebar Skip to footer

Wtforms Error:typeerror: Formdata Should Be A Multidict-type Wrapper

from wtforms import Form, BooleanField, TextField, validators,PasswordField class LoginForm(Form): username = TextField('Username', [validators.Length(min=4, max=25)])

Solution 1:

You are supposed to pass in self.request.form (the actual form fields, not the entire request)


Post a Comment for "Wtforms Error:typeerror: Formdata Should Be A Multidict-type Wrapper"