Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed A Social Network with Flask!
You have completed A Social Network with Flask!
Preview
Using code-based forms to create HTML forms and also provide data validation gives us two powerful tools for building our web application.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
They think that forms are all about
display.
0:00
And really that makes forms very limited.
0:01
Forms are about validation.
0:03
Making sure that your data matches a
certain pattern.
0:05
The de facto form library for Flask is
Flask-WTF,
0:08
and it builds on top of an older package
named WTForms, and
0:11
we'll actually end up with both of them
installed.
0:15
You'll install this with pip install
flask-wtf.
0:18
This package also provides us with CSRF,
or cross-site request forgery, protection.
0:22
What's cross-site request forgery?
0:28
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up