Web Forms With WTF! - Flask Fridays #5

Поділитися
Вставка
  • Опубліковано 25 лис 2024

КОМЕНТАРІ • 110

  • @Codemycom
    @Codemycom  3 роки тому +1

    ▶️ 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

  • @imnotaburrito9365
    @imnotaburrito9365 9 місяців тому +2

    finally after 5 videos someone that explains everything clearly!

    • @Codemycom
      @Codemycom  9 місяців тому +1

      Glad you liked it!

  • @rauldinho
    @rauldinho 3 роки тому +4

    I'm a simple man. I see a new Codemy video, I like, watch, learn and practice. lol

  • @francislachapelle123
    @francislachapelle123 3 роки тому +4

    Just started Flask at my job for a project, and your videos are clear and very instructives. Good job man.

  • @tradingoptions
    @tradingoptions Рік тому +1

    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 Рік тому +1

    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.

  • @articulation7
    @articulation7 2 роки тому +2

    What a series of the videos!
    Thanks for that amount of work!
    Very cool
    Cheers

  • @alicherifi9075
    @alicherifi9075 3 роки тому +1

    Best Fridays, are Flask Fridays

  • @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

  • @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?

  • @UGLi
    @UGLi 2 роки тому +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!

  • @david2358
    @david2358 Рік тому

    excellent video, just subscribed!!!

  • @Darkev77
    @Darkev77 Рік тому +1

    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

  • @rchocano
    @rchocano 3 роки тому

    Great video, very good explanation. Thank you!

  • @nerminqulu
    @nerminqulu Рік тому

    I like you are smile everytime when you saying WTF

  • @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

  • @andrewsweeney1653
    @andrewsweeney1653 2 роки тому +1

    Is there a tutorial for adding
    1. Date time picker to the form?
    2. Multi select dropdowns?

    • @Codemycom
      @Codemycom  2 роки тому +2

      I don't think so, but you could have checked the playlist faster than it took to ask :-p

  • @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?

  • @expressionamidstcacophony390

    This is one of those cases where youtube videos are more helpful documentation than the actual documentation. Dear oh dear.

  • @hiwab41
    @hiwab41 3 роки тому +1

    I like before seeing your vids! Because i know it gonna be so good -:)

  • @GIULI4994
    @GIULI4994 Рік тому

    very good tutorial, thanks

  • @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

  • @patmower46
    @patmower46 3 роки тому +2

    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 роки тому +1

      Same here

    • @brianbwoma9947
      @brianbwoma9947 2 роки тому

      @@source_thought i think its something to do with the crsf token

    • @radiagulzan
      @radiagulzan 2 роки тому +1

      same!

    • @radiagulzan
      @radiagulzan 2 роки тому +1

      could you solve it? I rewatched and did everything but it is still unresponsive

  • @SZGSports
    @SZGSports 2 роки тому

    If I wanted to pre populate the form, how would I pass the string?

  • @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?

  • @demasjaring5435
    @demasjaring5435 3 роки тому

    verry nice explaination ,thx!

  • @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 роки тому +1

      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 роки тому +1

      @@marymozaffari2963 You'll have to rewatch the video and retrace your steps to see what you did wrong.

  • @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')

  • @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

  • @devansh8095
    @devansh8095 3 роки тому +1

    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

  • @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

  • @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.

  • @Yanis0071
    @Yanis0071 3 роки тому

    Hello ! How can we prevent duplicate form submissions using the POST?

    • @Codemycom
      @Codemycom  3 роки тому +1

      It does it by default. If someone hit's reload they are prompted by a form re-submission popup

  • @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.

  • @jamikemichelohia2615
    @jamikemichelohia2615 3 роки тому

    Just came to check WTF wasnt what i thought it was.
    Jokes aside.
    great Job

  • @alexi2706
    @alexi2706 2 роки тому

    I am getting 'tuple' object is not callable

    • @Codemycom
      @Codemycom  2 роки тому +1

      What did you do differently from the video?

  • @orick08
    @orick08 6 місяців тому

    When I submit the form I get the 404 error page

    • @orick08
      @orick08 6 місяців тому +1

      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

  • @denisgarden1
    @denisgarden1 3 роки тому

    Where can find the code?

    • @Codemycom
      @Codemycom  3 роки тому

      in the pinned comment, like I said in the video.

  • @abdullahhazari918
    @abdullahhazari918 3 роки тому

    I love you men !

  • @gtasawstudio5010
    @gtasawstudio5010 3 роки тому

    Good. I very like you ;)

  • @asce313
    @asce313 3 роки тому

    👍 🔥🔥

  • @deki90to
    @deki90to 3 роки тому

    Well this is where I lost myself :0 I'll stick with django

    • @Codemycom
      @Codemycom  3 роки тому +1

      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 ;-)

  • @oleksandrshuhurov7536
    @oleksandrshuhurov7536 10 місяців тому

    SECRET KEY = "f off"
    From all the deaf listeners / watchers

  • @akgang602
    @akgang602 3 роки тому +1

    First

    • @Codemycom
      @Codemycom  3 роки тому +1

      Nice!

    • @akgang602
      @akgang602 3 роки тому +2

      @@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👌👌👌👍👍

  • @aditya.21
    @aditya.21 Рік тому

    Could anyone help me to hide the secret key using .gitignore , it happens somewhere around @ 6:00 in the video