[ad_1]
https://i.ytimg.com/vi/S7ZLiUabaEo/hqdefault.jpg
I continue demonstrating Flask-Bootstrap by showing you how to integrate a form generated by WTForms in the template.
My videos on WTForms in Flask:
Intro – https://www.youtube.com/watch?v=eu0tg4vgFr4
Validators – https://www.youtube.com/watch?v=F9vTlDzn7ac
Date fields – https://www.youtube.com/watch?v=il9hh5Ysw9o
Get the code here: https://prettyprinted.com/l/t5y
Flask Bootstrap WTForms docs: https://pythonhosted.org/Flask-Bootstrap/forms.html
Join my free course on the basics of Flask-SQLAlchemy: https://prettyprinted.com/flasksql
Free Flask cheat sheet: http://prettyprinted.com/flaskcheatsheet
Original source
39 responses to “Using Flask-WTForms With Flask-Bootstrap”
Join my free course on the basics of Flask-SQLAlchemy: https://prettyprinted.com/flasksql
Love your vide keep it up bro
does Flask nav integrate with flask bootstrap?
I have a question. I installed flask-bootstrap as you show us in the video but when i run the app, i got the message "no module flask_bootstrap". The flask module is working fine, i didn't have any problem with it. I work on raspberry pi3. Thanks!
Nice video! Why do you only have1 button there? Since wtf.quick_form(form) automatically generate 1 button and your line 13 create a new one then there should be 2 buttons right?
Thank you for the nice tutorial, i have 2 question, does flask bootstrap support bootstrap version 4.0, the second question is not related to the subject, can i build web apps with flask and react as a front end framework,
it is showing me errors in black color. how to change its error color.
Hi Anthony,
Best vids ever!
How Can we use bootstrap 4? And why do I get the HTML5 validation instead or wtf.validators?
one this this video leaves out but is very basic the templates are stored in venv >flask-bootstrap > templates
Thanks..This is what i needed..😊pls do more videos about this😍
Kinda took a dive in the deepend doing the flask website tutorial then trying to incorporate bootstrap, sass and wtf. Realised error of my ways so thanks for providing digestible chunks of flask to improve my understanding 🙂
Why do we use wtform validations if the same can be done by HTML itself ? This way the request does not go to server and it will be faster as well
i'm getting an error TemplateNotFound: bootstrap/base.html, but the code is as yours, as far as i can tell, any ideas
the link to the code is a 404 can you restore the code as I have an error I cant work out without doing a compare
many thanks in advance
Yes, I would love to watch the same type of video for a complicated example. It will clear my concepts better!
Thanks!
This is exactly what I need. Help me a lot on get started on flask with bootstrap without going too deep into front end development. Thank you so much!!!
Please cover more complicated forms.
how can I set up a background image?
Until I started following your Flask tutorials, I have been having a lot of difficulty with other people's Flask Bootstrap tutorials. All the difficulties with Flask usually start with Bootstrap. You however seem to have all the answers. What a damn relief that is!
I can't speak for other people but, I know I could use a bit more information (tutorials) on NavBars and other Bootstrap CSS, JS examples. Don't stop now! And I'm well aware that these video are more than a year old. But in this case, more is better.
Thank You Anthony for your badly needed contribution.
what does base.html looks like?
Thanks a lot sir for this amazing video. You just made my work so much easier. I didn't know that library like this existed.
ImportError: cannot import name Anyof give me solution for that please
Antony is very good teacher and developer. I am strongly recommend those who want to be full stack developer with Python. Here is the link of the his course :
https://prettyprinted.com/
I couldn't set the default value for a SelectField nor for a SelectMultipleField using the "default=key/[keys]" field argument (even with static content!).. has something changed with new wtforms versions?
These videos are so good that they should be part of official Flask documentation.
I rather use quickform sometimes, but I have an issue with it.I cannot submit the form correctly because when I add the submit input it finished out of the form tags and don't submit anything.Any help? :S
I want to do a step by step questionaire in flask by using radio / checkboxes and text field in a multiple page form. Also want to use reference image in some of them. A tutorial in that effect would be nice.
Thx a lot! Any plans for create lessons 'bout Flask-Babel extension? 😉
How do I pass data to the value attribute in the form through WTForms with Bootstrap so I could update posts?
I tried this: {{ wtf.form_field(form.title, value="{{ post.title }}") }
……..but the value didn't interpret it as data from the database. Also how would I put a value inside the textarea?
Can we do a demo of an example of Multipart Form in WTF?
How to solve :jinja2.exceptions.UndefinedError UndefinedError: 'bootstrap_is_hidden_field' is undefined
This "bootstrap_is_hidden_field" is present in the code of wtf.html…I guess some changes have to be made there
On running the program it shows error "templateNotFound: bootstrap/wtf.html"
How to resolve this error?
awesome. let's get more advanced.
nice
The best Flasker on Youtube , enjoyed the video as always , thanks 🙂
I'd be interested in seeing how you would do something similar with straight bootstrap. Very useful to know how wtforms integrates with bootstrap-like libraries. Plus reduces dependencies 😊
Great videos on Flask. Keep them coming!
thank you Anthony
first