▶️ Watch Entire Flask Friday Playlist ✅ Subscribe To My UA-cam 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
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!
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.
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?
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 :).
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.)?
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?
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?
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.
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?!
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?
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'
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')
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
▶️ Watch Entire Flask Friday Playlist ✅ Subscribe To My UA-cam 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
finally after 5 videos someone that explains everything clearly!
Glad you liked it!
I'm a simple man. I see a new Codemy video, I like, watch, learn and practice. lol
You rock!
Just started Flask at my job for a project, and your videos are clear and very instructives. Good job man.
Glad I could help!
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!
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.
You're very welcome!
What a series of the videos!
Thanks for that amount of work!
Very cool
Cheers
Glad you enjoyed it!
Best Fridays, are Flask Fridays
Yes!
Amazing lecture sir... Please keep uploading new updated videos on flask. you sre the best mentor
There are many more flask videos in this playlist
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?
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 :).
Great video, very good and quick explanation. Thanks!
Glad you enjoyed it!
excellent video, just subscribed!!!
Awesome!
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.)?
He explains alittle in the start, basically because you can use wtforms for uploading files and images
Great video, very good explanation. Thank you!
Thanks!
I like you are smile everytime when you saying WTF
haha
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?
passes the name and the form
Is there a tutorial for adding
1. Date time picker to the form?
2. Multi select dropdowns?
I don't think so, but you could have checked the playlist faster than it took to ask :-p
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?
This is one of those cases where youtube videos are more helpful documentation than the actual documentation. Dear oh dear.
Glad you enjoyed it!
I like before seeing your vids! Because i know it gonna be so good -:)
Wow, thanks!
Me too
I'm too
very good tutorial, thanks
Welcome
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.
I have lots of videos on forms...but there really isn't much more to them.
cant get bootstrap to reflect changes in name.html EX: {{ form.name.label( class = "form-label" ) }} doesnt change the look
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?!
I couldn't guess...rewatch the videos and try again :-)
Same here
@@source_thought i think its something to do with the crsf token
same!
could you solve it? I rewatched and did everything but it is still unresponsive
If I wanted to pre populate the form, how would I pass the string?
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?
Of course it's still supported...why would you think that it wasn't?
verry nice explaination ,thx!
Glad it was helpful!
Hi John in 16:19 my code has problem with submit button
did you change the code when you run it?
Did I change the code? You see exactly what I do in the video.
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'
@@marymozaffari2963 You'll have to rewatch the video and retrace your steps to see what you did wrong.
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')
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
If it's listed in the requirements, than it's installed. If some module is missing, pip install that module.
@@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
Sir is it bad to convert kivy file into exe with pyinstaller?
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...
@@Codemycom yes sir that's make sense but now my doubt is clr
aaaaahhh it's a hard framework to learn. Soooo many methods and references in there. But thank you anyways for every detail.
Yeah definitely a little harder than Django
is it possible to do the python logic not in the html file but in already in the backed python file ?
Sure, you can use python however you want on the backend.
Hello ! How can we prevent duplicate form submissions using the POST?
It does it by default. If someone hit's reload they are prompted by a form re-submission popup
When you install new packages make sure you are in the virtual environment and not in another terminal that is not in the ve.
Yep
Just came to check WTF wasnt what i thought it was.
Jokes aside.
great Job
Haha
I am getting 'tuple' object is not callable
What did you do differently from the video?
When I submit the form I get the 404 error page
I had action="POST" instead of method="POST" on the form, careful with the VSCode
@@orick08 glad you got it sorted out
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?
Yeah I might get to that in the future
@@Codemycom i would really appreciate that! Thanks
Where can find the code?
in the pinned comment, like I said in the video.
I love you men !
Thanks!
Good. I very like you ;)
Thanks! 😃
👍 🔥🔥
:-)
Well this is where I lost myself :0 I'll stick with django
Django is always a nice option
How did you manage saying WHAT THE FORMS every time! not accidentally saying WHAT THE FXCK haha
Wasn't easy...and you know...video editing is your friend ;-)
SECRET KEY = "f off"
From all the deaf listeners / watchers
First
Nice!
@@Codemycom thanks for heart 😁
What the fuck module
Sir please make a series on pygame its very demanded sir please🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏
I probably will at some point
@@Codemycom thanks sir for confirmation stay tuned with you👌👌👌👍👍
Could anyone help me to hide the secret key using .gitignore , it happens somewhere around @ 6:00 in the video