Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Basel Barzanji
Python Web Development Techdegree Graduate 20,706 PointsGetting Error in pycharm after installing package and clicking registration w/empty fields "FlaskWTFDeprecationWarning:
/register > clicked submit button on empty fields >
Validation works and everything gets posted but I get this error in the console:
FlaskWTFDeprecationWarning: "flask_wtf.Form" has been renamed to "FlaskForm" and will be removed in 1.0. form = forms.RegisterForm()
1 Answer
Basel Barzanji
Python Web Development Techdegree Graduate 20,706 Pointsooks like in new version have to import FlaskForm instead of Form
from flask_wtf import FlaskForm from flask_wtf.file import FileField, FileRequired from werkzeug.utils import secure_filename
class PhotoForm(FlaskForm): photo = FileField(validators=[FileRequired()])