Pre-Populate a WTforms in flask, with data from a SQLAlchemy object
问题 I am fairly new to flask framework and was creating an edit profile page for a webportal. I am stuck at a point and am unable to autofill a form. Here is my form class : class EditProfile(Form): username = TextField('Username', [Required()]) email = TextField('Email', [Required()]) about = TextAreaField('About', [Required()]) website = TextField('Website', [Required()]) This is my function that evaluates the form. def editprofile(nickname = None): if g.fas_user['username'] == nickname or