Back to Browse

Web Forms With WTF! - Flask Fridays #5

82.2K views
Feb 12, 2021
22:56

In this video we'll start to use Web Forms for our Flask project with WTF (What the Forms!). Web forms with WTF are incredibly easy to use and come with all sorts of features that we need like form validation, CSRF token creation, and even reCAPTCHA. You can always build out web forms by hand, but using a 3rd party system like WTF just makes it so much easier! In this video we'll look at FlaskForm, StringField, SubmitField, and the DataRequired validator. Timecodes 0:00​ - Intro 1:36 - Pip Install flask-wtf 2:04 - Import WTF 4:37 - Create A Secret Key 6:11 - Create a Form Class 7:45 - Create name.html Webpage 8:24 - Create Route and Function For name.html 12:12 - Add Link to name.html in Navbar 12:47 - Add Form To name.html Webpage 16:14 - Add Bootstrap To Form 18:23 - Change Button Color 19:33 - List of WTF Fields and Validators 21:33 - Check out the WTF Documentation 22:02 - Conclusion

Download

1 formats

Video Formats

360pmp448.9 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Web Forms With WTF! - Flask Fridays #5 | NatokHD