How to Process Incoming Request Data in Flask

Поделиться
HTML-код
  • Опубликовано: 27 авг 2024

Комментарии • 67

  • @prettyprinted
    @prettyprinted  4 года назад

    Join my free course on the basics of Flask: prettyprinted.com/introflask

  • @BlackFoxLeather
    @BlackFoxLeather 4 года назад +9

    This is one of the best videos I've seen on requests, thank you!

  • @mayankkumargiri1289
    @mayankkumargiri1289 5 лет назад +11

    You're great at explaining things clearly and to the point while covering all points at the same time. Please keep up the great work!
    Looking forward to many more tutorials from you :)

    • @prettyprinted
      @prettyprinted  5 лет назад +2

      I'm glad you like the video. Thanks for watching!

  • @asmarali4167
    @asmarali4167 2 года назад

    No one has explained better than this. Thank you so much

  • @darrenf5784
    @darrenf5784 4 года назад +1

    One of the best explanations I have seen on RUclips. This is great ! Thank you so much and keep up the great work ! 5 starts...

  • @thomasalberto613
    @thomasalberto613 4 года назад +1

    This was great! It didn't even feel that long; all information was concise and helpful. Nice work!

  • @ankurchaudhary3415
    @ankurchaudhary3415 3 года назад

    Thankyou so much, One of the best explaination covering all possible use cases. Thanks!

  • @ammarahmedkhan2416
    @ammarahmedkhan2416 8 месяцев назад

    Bro this saved my life. thanks

  • @cestari001
    @cestari001 2 года назад

    Very nice job explaining FLASK... thanks a lot

  • @demigod6190
    @demigod6190 4 года назад

    Best online Teacher ever! a tons of love dude

  • @sribastavrajguru304
    @sribastavrajguru304 2 года назад

    Wondeful demonstration

  • @cj8tacos123
    @cj8tacos123 5 лет назад +1

    Thank you for making this, you are a wonderful teacher

  • @rafaelxavier1831
    @rafaelxavier1831 5 лет назад +4

    Hey, great video. Would be awesome a video about file uploading with json parameters on the same request.

    • @prettyprinted
      @prettyprinted  5 лет назад +2

      I'll see if I can find a case for that. Thanks for the idea.

  • @pranay0601
    @pranay0601 5 лет назад

    Great video. Straight to point and clear. Thanks for the video

  • @kennethbass1915
    @kennethbass1915 2 года назад

    Very helpful.

  • @hansappelo
    @hansappelo 3 года назад

    Thank you - nicely explained

  • @tymothylim6550
    @tymothylim6550 3 года назад

    Thank you very much for this video! :) It was really clear and I learnt a lot :)

  • @egorkomarov4719
    @egorkomarov4719 5 лет назад +3

    Спасибо за отличные видео!

  • @vijeandran
    @vijeandran 2 года назад

    HI, Instead of printing all the columns in GET request, How could I get only specific columns from the postgres table?

  • @gaborf3168
    @gaborf3168 4 года назад

    Thanks for the great tutorial!

  • @Ovicron
    @Ovicron 4 года назад

    THANK YOU SO MUCH! I was really demotivated because I was having trouble getting the gist of this but this video just made it all better!!!!

  • @zvacha
    @zvacha 4 года назад

    Love it. Thank you for creating it.

  • @shubhamgupta8723
    @shubhamgupta8723 4 года назад

    Thnx for the video

  • @chamilarathnayake
    @chamilarathnayake 4 года назад

    Very helpful. Great Video

  • @bruriahassidim8369
    @bruriahassidim8369 4 года назад

    Thank you very very much! it was really helpfull

  • @juleswombat5309
    @juleswombat5309 4 года назад

    That was pretty awesome - Many Thanks

  • @OverwhelmingGrace
    @OverwhelmingGrace 4 месяца назад

    Question: I have a list of items on a web page. When the user clicks on an item, I want to send the request with the id to a flask route, but I don't want the id in the url. I was going to have an onclick event and use js to change the value of the a hidden id field in a form, and then make a post request. This means I'd need to use js to make the post request. Is there a simpler way to avoid js making the fetch request?

  • @eriklee1131
    @eriklee1131 5 лет назад

    Amazing tutorial!

  • @diahrongrismore1054
    @diahrongrismore1054 5 лет назад

    I agree with Tim, f-strings are far easier to use. Once you start using it, it become difficult not to.

  • @JoseHernandez-qk5by
    @JoseHernandez-qk5by Год назад

    HI
    I just wanted to ask... what about if I want the whole json data requested (req_data) seen

  • @janamzaveri3928
    @janamzaveri3928 4 года назад

    was wondering if there was way to print the form data onto the shell

  • @guitance23
    @guitance23 2 года назад +1

    Nice tutorial. Quick question: My client side is not postman but a python script only which is sending json block. At my server side, request.get_json() always showing None object. I tried with argument request.get_json(force=True) but still same error. Any idea what I might be doing wrong

    • @Shazz203
      @Shazz203 2 года назад

      Hi, I'm encountering the same issue with my python script. Did you manage to get this resolved?

  • @weida6055
    @weida6055 10 месяцев назад

    How show incoming json data in the brower instead of POSTMAN,

  • @sivaganesh7727
    @sivaganesh7727 4 года назад

    Sir my case was i passing an list to my html page and create check boxes for behind each element in list and i want to reupdate it . please help me. If i sort out those my final year project was complete d.

  • @huseyngorbani6544
    @huseyngorbani6544 3 года назад

    Noicee 😂👌🏻, thank you, this video was so helpful.

  • @arkodeepchatterjee
    @arkodeepchatterjee Год назад

    how to display the data on the website??

  • @playgoods
    @playgoods 4 года назад

    thank you

  • @MatteoMenozzi
    @MatteoMenozzi 2 года назад

    how I load in database json?

  • @dhakshintechi9896
    @dhakshintechi9896 5 лет назад

    Sir pls make videos on how to integrate mangoDB with django....highly wanted videos nowadays according to stackoverflow...And make a playlist on mangoDB and django...reply pls

  • @rossgeography
    @rossgeography 3 года назад

    what is the difference between request.args and request.view_args ??
    is view_args everything specified in a route and args any argument/params in the querystring?! v.frustrating

    • @prettyprinted
      @prettyprinted  3 года назад

      args is for anything after the question mark. view_args is for the values in the route definition. For example, for @app.route('/home//'), user and location would be view args.

  • @poporosa9727
    @poporosa9727 5 лет назад

    i cant see the submit button, ive written exaclty the same code but doesnt work the same

  • @abhimanyuparvatikar1819
    @abhimanyuparvatikar1819 4 года назад

    in 22:47 how would you display the data stored in the variables onto the html file ?? any help would be appreciated thanks

    • @Lucy-dk5cz
      @Lucy-dk5cz 4 года назад +1

      Abhimanyu Parvatikar pass it when you call render template and reference using jinja

  • @sushi2slushy
    @sushi2slushy 5 лет назад

    is it easy to separate the "server" file and the “app"? i see it done for javascript but not sure how it would look in python
    ```
    const app = require('./app.js');
    const PORT = process.env.PORT || 8080;
    ···

    • @prettyprinted
      @prettyprinted  5 лет назад

      Yeah you can. Check out my videos on organizing Flask apps.

  • @a00515
    @a00515 3 года назад

    Files how?

  • @user-nk3cs4rr8s
    @user-nk3cs4rr8s 5 лет назад

    can i get all request data or i shood take one by one(like in video) by keys?

    • @prettyprinted
      @prettyprinted  5 лет назад

      It's a dictionary, so yeah you can take all the information at once.

  • @Emily_Entropy
    @Emily_Entropy 5 лет назад

    Is there a reason you aren't using f-strings? Format seems awkward these days.

    • @prettyprinted
      @prettyprinted  5 лет назад

      I haven't used them yet because... I don't have a reason. I'll try them out and make a video about them. Thanks for reminding me.

    • @Emily_Entropy
      @Emily_Entropy 5 лет назад

      @@prettyprinted Oh, wow, Anthony you are in for a treat! F-Strings are amazing. They're absolutely the best way to concatenate variables into words, in any language.

  • @yousefsadeek6640
    @yousefsadeek6640 Год назад

    24:58 iffffffffffffffffffffffffffffffffffffffffff 😁😁😁😁