Web Forms With WTF! - Flask Fridays #5

  Рет қаралды 71,707

Codemy.com

Codemy.com

Күн бұрын

Пікірлер: 110
@Codemycom
@Codemycom 3 жыл бұрын
▶️ Watch Entire Flask Friday Playlist ✅ Subscribe To My KZbin Channel: bit.ly/3ig2eJn bit.ly/2IGzvOR ▶️ See More At: ✅ Join My Facebook Group: Codemy.com bit.ly/2GFmOBz ▶️ Learn to Code at Codemy.com ✅ Buy a Codemy T-Shirt! Take $30 off with coupon code: youtube1 bit.ly/2VC9WUN ▶️ Get The Code bit.ly/2L1jBl5
@imnotaburrito9365
@imnotaburrito9365 9 ай бұрын
finally after 5 videos someone that explains everything clearly!
@Codemycom
@Codemycom 9 ай бұрын
Glad you liked it!
@rauldinho
@rauldinho 3 жыл бұрын
I'm a simple man. I see a new Codemy video, I like, watch, learn and practice. lol
@Codemycom
@Codemycom 3 жыл бұрын
You rock!
@francislachapelle123
@francislachapelle123 3 жыл бұрын
Just started Flask at my job for a project, and your videos are clear and very instructives. Good job man.
@Codemycom
@Codemycom 3 жыл бұрын
Glad I could help!
@tradingoptions
@tradingoptions Жыл бұрын
2023: [Bug Fix] You need to add {{ form.csrf_token }} before or after this line {{ form.hidden_tag() }} on the name.html page. Else if form.validate_on_submit() == False This is a great series of videos. Thanks!
@pmatoss
@pmatoss Жыл бұрын
I have no words to describe my gratitude for this series of videos. In addition to being extremely educational and educational, they are so realistic that I am applying them to an educational project that I am developing with a group of friends. Thank you very much for the great work. Greetings from Brazil.
@Codemycom
@Codemycom Жыл бұрын
You're very welcome!
@articulation7
@articulation7 2 жыл бұрын
What a series of the videos! Thanks for that amount of work! Very cool Cheers
@Codemycom
@Codemycom 2 жыл бұрын
Glad you enjoyed it!
@alicherifi9075
@alicherifi9075 3 жыл бұрын
Best Fridays, are Flask Fridays
@Codemycom
@Codemycom 3 жыл бұрын
Yes!
@mehboob_pythonist
@mehboob_pythonist Жыл бұрын
Amazing lecture sir... Please keep uploading new updated videos on flask. you sre the best mentor
@Codemycom
@Codemycom Жыл бұрын
There are many more flask videos in this playlist
@UGLi
@UGLi 2 жыл бұрын
Hi, I LOVE your tutorials, they are 100% on point. I'll keep on studying them with pleasure. Just a note : at 7:02, you say DataRequired() is a function, it seems to be an instance of the DataRequired class. It's only a detail but before running the code without the (), and reading the traceback, I was a bit lost :).
@lukagajinov232
@lukagajinov232 Жыл бұрын
Great video, very good and quick explanation. Thanks!
@Codemycom
@Codemycom Жыл бұрын
Glad you enjoyed it!
@TorstenFelder-bn2ez
@TorstenFelder-bn2ez 2 ай бұрын
Again, an outstanding tutorial- excellent! Question: How would one make the information submitted by one of several forms available for use in all python methods in a Flask project?
@nerminqulu
@nerminqulu Жыл бұрын
I like you are smile everytime when you saying WTF
@Codemycom
@Codemycom Жыл бұрын
haha
@rchocano
@rchocano 3 жыл бұрын
Great video, very good explanation. Thank you!
@Codemycom
@Codemycom 3 жыл бұрын
Thanks!
@expressionamidstcacophony390
@expressionamidstcacophony390 Жыл бұрын
This is one of those cases where youtube videos are more helpful documentation than the actual documentation. Dear oh dear.
@Codemycom
@Codemycom Жыл бұрын
Glad you enjoyed it!
@GIULI4994
@GIULI4994 Жыл бұрын
very good tutorial, thanks
@Codemycom
@Codemycom Жыл бұрын
Welcome
@david2358
@david2358 Жыл бұрын
excellent video, just subscribed!!!
@Codemycom
@Codemycom Жыл бұрын
Awesome!
@hiwab41
@hiwab41 3 жыл бұрын
I like before seeing your vids! Because i know it gonna be so good -:)
@Codemycom
@Codemycom 3 жыл бұрын
Wow, thanks!
@sachinsinghal13
@sachinsinghal13 3 жыл бұрын
Me too
@ahmadfaisal6356
@ahmadfaisal6356 3 жыл бұрын
I'm too
@Darkev77
@Darkev77 Жыл бұрын
As usual, clear and concise. Anyone know why I should use wtforms over typical html input tags with specified types (email, password, etc.) and properties (required, title, etc.)?
@AwesomelyAwesomeKidd
@AwesomelyAwesomeKidd Жыл бұрын
He explains alittle in the start, basically because you can use wtforms for uploading files and images
@likbezlik
@likbezlik 11 ай бұрын
I looked at many Flask tutorials and yours is the only one that helped me find a solution to this simple form. Took me a few hours to fix some bugs though. I was very confused with the attributes that we have to pass to the render_template "name=name" and "form=form". What exactly does this part do in the code?
@Codemycom
@Codemycom 11 ай бұрын
passes the name and the form
@demasjaring5435
@demasjaring5435 3 жыл бұрын
verry nice explaination ,thx!
@Codemycom
@Codemycom 3 жыл бұрын
Glad it was helpful!
@andrewsweeney1653
@andrewsweeney1653 2 жыл бұрын
Is there a tutorial for adding 1. Date time picker to the form? 2. Multi select dropdowns?
@Codemycom
@Codemycom 2 жыл бұрын
I don't think so, but you could have checked the playlist faster than it took to ask :-p
@SZGSports
@SZGSports 2 жыл бұрын
If I wanted to pre populate the form, how would I pass the string?
@radiagulzan
@radiagulzan 2 жыл бұрын
Hey, thank you for the videos! I had the same problem as Patrick. The page doesn't follow the IF condition so doesn't respond back despite reloading. Do you have any idea why this might be happening?
@marymozaffari2963
@marymozaffari2963 2 жыл бұрын
Hi John in 16:19 my code has problem with submit button did you change the code when you run it?
@Codemycom
@Codemycom 2 жыл бұрын
Did I change the code? You see exactly what I do in the video.
@marymozaffari2963
@marymozaffari2963 2 жыл бұрын
Thank you for reply exactly you didn't and I was studying your code step by step but when I want to run it, It has problem with submit button here is the error: jinja2.exceptions.UndefinedError: '__main__.NamerForm object' has no attribute 'submit'
@Codemycom
@Codemycom 2 жыл бұрын
@@marymozaffari2963 You'll have to rewatch the video and retrace your steps to see what you did wrong.
@patmower46
@patmower46 3 жыл бұрын
John, I must've missed something. Everything works with one exception: When I put a name in the name page, press submit, the name goes away, but the page and name are NOT redisplayed. I know I have missed something....but what?!
@Codemycom
@Codemycom 3 жыл бұрын
I couldn't guess...rewatch the videos and try again :-)
@source_thought
@source_thought 2 жыл бұрын
Same here
@brianbwoma9947
@brianbwoma9947 2 жыл бұрын
@@source_thought i think its something to do with the crsf token
@radiagulzan
@radiagulzan 2 жыл бұрын
same!
@radiagulzan
@radiagulzan 2 жыл бұрын
could you solve it? I rewatched and did everything but it is still unresponsive
@koslockwood
@koslockwood 2 жыл бұрын
Can you recommend any resources on more complex form use? I'd like to better understand passing data back to the python script and ideally creating dynamic forms: essentially my goal is to have a list of objects pulled from a database via API (i've got this working) have the list of objects printed as selectable items in a form, and have the form return a list of objects that were selected for additional processing to be done against.
@Codemycom
@Codemycom 2 жыл бұрын
I have lots of videos on forms...but there really isn't much more to them.
@stephontidd7051
@stephontidd7051 Жыл бұрын
cant get bootstrap to reflect changes in name.html EX: {{ form.name.label( class = "form-label" ) }} doesnt change the look
@seacook42
@seacook42 Жыл бұрын
Hi John, I've just come back to Flask Fridays and find that this segment is outdated. FlaskForm is no longer supported by wtf. Any chance of an update for this segment?
@Codemycom
@Codemycom Жыл бұрын
Of course it's still supported...why would you think that it wasn't?
@BenMrMakinesiyim
@BenMrMakinesiyim 8 ай бұрын
aaaaahhh it's a hard framework to learn. Soooo many methods and references in there. But thank you anyways for every detail.
@Codemycom
@Codemycom 8 ай бұрын
Yeah definitely a little harder than Django
@asce313
@asce313 3 жыл бұрын
👍 🔥🔥
@Codemycom
@Codemycom 3 жыл бұрын
:-)
@wirrexx
@wirrexx 9 ай бұрын
Love what you are doing. However, I got an error pip install flask-wtf on windows. as It continue to say that the module is missing. However, I can see it in my requirements on pip freeze. Confusing
@Codemycom
@Codemycom 9 ай бұрын
If it's listed in the requirements, than it's installed. If some module is missing, pip install that module.
@wirrexx
@wirrexx 9 ай бұрын
@@Codemycom fixed it. I had to build a new system In sublime and make sure that the path was in my virtual environment python.exe
@salmantas2335
@salmantas2335 Жыл бұрын
in case of is there any one wondering how to change button text other than submit: just pass what you want into the SubmitField that you created in your class. for example: submit = SubmitField('sometext')
@devansh8095
@devansh8095 3 жыл бұрын
Sir is it bad to convert kivy file into exe with pyinstaller?
@Codemycom
@Codemycom 3 жыл бұрын
Maybe you should ask that question under the video I did in the kivy playlist showing how to convert a kivy file into exe with pyinstaller...
@devansh8095
@devansh8095 3 жыл бұрын
@@Codemycom yes sir that's make sense but now my doubt is clr
@Yanis0071
@Yanis0071 3 жыл бұрын
Hello ! How can we prevent duplicate form submissions using the POST?
@Codemycom
@Codemycom 3 жыл бұрын
It does it by default. If someone hit's reload they are prompted by a form re-submission popup
@jamikemichelohia2615
@jamikemichelohia2615 3 жыл бұрын
Just came to check WTF wasnt what i thought it was. Jokes aside. great Job
@Codemycom
@Codemycom 3 жыл бұрын
Haha
@aditya.21
@aditya.21 Жыл бұрын
Could anyone help me to hide the secret key using .gitignore , it happens somewhere around @ 6:00 in the video
@danielruzicka3858
@danielruzicka3858 2 жыл бұрын
is it possible to do the python logic not in the html file but in already in the backed python file ?
@Codemycom
@Codemycom 2 жыл бұрын
Sure, you can use python however you want on the backend.
@paulbrugger9610
@paulbrugger9610 2 жыл бұрын
When you install new packages make sure you are in the virtual environment and not in another terminal that is not in the ve.
@Codemycom
@Codemycom 2 жыл бұрын
Yep
@abdullahhazari918
@abdullahhazari918 3 жыл бұрын
I love you men !
@Codemycom
@Codemycom 3 жыл бұрын
Thanks!
@gtasawstudio5010
@gtasawstudio5010 3 жыл бұрын
Good. I very like you ;)
@Codemycom
@Codemycom 3 жыл бұрын
Thanks! 😃
@alexi2706
@alexi2706 2 жыл бұрын
I am getting 'tuple' object is not callable
@Codemycom
@Codemycom 2 жыл бұрын
What did you do differently from the video?
@denisgarden1
@denisgarden1 3 жыл бұрын
Where can find the code?
@Codemycom
@Codemycom 3 жыл бұрын
in the pinned comment, like I said in the video.
@orick08
@orick08 6 ай бұрын
When I submit the form I get the 404 error page
@orick08
@orick08 6 ай бұрын
I had action="POST" instead of method="POST" on the form, careful with the VSCode
@Codemycom
@Codemycom 6 ай бұрын
@@orick08 glad you got it sorted out
@MagicByIzzy
@MagicByIzzy 3 жыл бұрын
Hi John i love your videos! Can you please do a video on pymongo and flask especially on storing images in a mongo db database?
@Codemycom
@Codemycom 3 жыл бұрын
Yeah I might get to that in the future
@MagicByIzzy
@MagicByIzzy 3 жыл бұрын
@@Codemycom i would really appreciate that! Thanks
@oleksandrshuhurov7536
@oleksandrshuhurov7536 10 ай бұрын
SECRET KEY = "f off" From all the deaf listeners / watchers
@deki90to
@deki90to 3 жыл бұрын
Well this is where I lost myself :0 I'll stick with django
@Codemycom
@Codemycom 3 жыл бұрын
Django is always a nice option
@user-gf3hf5ri8b
@user-gf3hf5ri8b 2 жыл бұрын
How did you manage saying WHAT THE FORMS every time! not accidentally saying WHAT THE FXCK haha
@Codemycom
@Codemycom 2 жыл бұрын
Wasn't easy...and you know...video editing is your friend ;-)
@akgang602
@akgang602 3 жыл бұрын
First
@Codemycom
@Codemycom 3 жыл бұрын
Nice!
@akgang602
@akgang602 3 жыл бұрын
@@Codemycom thanks for heart 😁
@hiroshi_kamisatou
@hiroshi_kamisatou 2 жыл бұрын
What the fuck module
@allanimeworld2898
@allanimeworld2898 3 жыл бұрын
Sir please make a series on pygame its very demanded sir please🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏
@Codemycom
@Codemycom 3 жыл бұрын
I probably will at some point
@allanimeworld2898
@allanimeworld2898 3 жыл бұрын
@@Codemycom thanks sir for confirmation stay tuned with you👌👌👌👍👍
How To Use Messages With Flask - Flask Fridays #6
10:43
Codemy.com
Рет қаралды 35 М.
Templates, Bootstrap Navbars, and Links - Flask Fridays #4
16:25
Мама у нас строгая
00:20
VAVAN
Рет қаралды 12 МЛН
Чистка воды совком от денег
00:32
FD Vasya
Рет қаралды 4,9 МЛН
How to Use Databases With SQLAlchemy  - Flask Fridays #8
25:36
Codemy.com
Рет қаралды 96 М.
South Korea’s president declares emergency martial law
12:04
Al Jazeera English
Рет қаралды 239 М.
Python and Flask - Web Forms with Flask-wtf
6:42
TheCodex
Рет қаралды 68 М.
Flask Tutorial #4 - HTTP Methods (GET/POST) & Retrieving Form Data
11:06
Using Flask-WTForms With Flask-Bootstrap
9:13
Pretty Printed
Рет қаралды 62 М.
How To Use Python On A Web Page With Jinja2  - Flask Fridays #2
21:30
Make A Python Website As Fast As Possible!
22:21
Tech With Tim
Рет қаралды 706 М.
User Login with Flask_Login - Flask Fridays #22
23:51
Codemy.com
Рет қаралды 59 М.