realpython / flask-boilerplate

Boilerplate template for a Python Flask application with Flask-SQLAlchemy, Flask-WTF, Fabric, Coverage, and Bootstrap
http://www.flaskboilerplate.com
Apache License 2.0
1.53k stars 536 forks source link

ImportError: cannot import name 'TextField' from 'wtforms' #63

Open rseghier opened 1 year ago

rseghier commented 1 year ago

solution https://github.com/FreeTAKTeam/FreeTakServer/issues/206

sudo pip3 install WTForms==2.3.3

jjudd25m commented 9 months ago

Better yet, in forms.py replace TextField with StringField throughout the file. Then it works (TextField was depreciated)