How to Process Incoming Request Data in Flask

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 พ.ย. 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!

  • @darrenf5784
    @darrenf5784 4 ปีที่แล้ว +1

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

  • @asmarali4167
    @asmarali4167 3 ปีที่แล้ว

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

  • @ankurchaudhary3415
    @ankurchaudhary3415 3 ปีที่แล้ว

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

  • @thomasalberto613
    @thomasalberto613 4 ปีที่แล้ว +1

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

  • @cestari001
    @cestari001 3 ปีที่แล้ว

    Very nice job explaining FLASK... thanks a lot

  • @demigod6190
    @demigod6190 4 ปีที่แล้ว

    Best online Teacher ever! a tons of love dude

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

  • @cj8tacos123
    @cj8tacos123 5 ปีที่แล้ว +1

    Thank you for making this, you are a wonderful teacher

  • @pranay0601
    @pranay0601 5 ปีที่แล้ว

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

    • @prettyprinted
      @prettyprinted  5 ปีที่แล้ว

      You're welcome! Thanks for watching.

  • @ammarahmedkhan2416
    @ammarahmedkhan2416 11 หลายเดือนก่อน

    Bro this saved my life. thanks

  • @vijeandran
    @vijeandran 2 ปีที่แล้ว

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

  • @tymothylim6550
    @tymothylim6550 3 ปีที่แล้ว

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

  • @hansappelo
    @hansappelo 4 ปีที่แล้ว

    Thank you - nicely explained

  • @sribastavrajguru304
    @sribastavrajguru304 2 ปีที่แล้ว

    Wondeful demonstration

  • @OverwhelmingGrace
    @OverwhelmingGrace 7 หลายเดือนก่อน

    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?

  • @zvacha
    @zvacha 4 ปีที่แล้ว

    Love it. Thank you for creating it.

  • @janamzaveri3928
    @janamzaveri3928 4 ปีที่แล้ว

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

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

  • @JoseHernandez-qk5by
    @JoseHernandez-qk5by ปีที่แล้ว

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

  • @egorkomarov4719
    @egorkomarov4719 5 ปีที่แล้ว +3

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

  • @diahrongrismore1054
    @diahrongrismore1054 5 ปีที่แล้ว

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

  • @gaborf3168
    @gaborf3168 4 ปีที่แล้ว

    Thanks for the great tutorial!

  • @kennethbass1915
    @kennethbass1915 2 ปีที่แล้ว

    Very helpful.

  • @chamilarathnayake
    @chamilarathnayake 4 ปีที่แล้ว

    Very helpful. Great Video

  • @bruriahassidim8369
    @bruriahassidim8369 4 ปีที่แล้ว

    Thank you very very much! it was really helpfull

  • @guitance23
    @guitance23 3 ปีที่แล้ว +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?

  • @juleswombat5309
    @juleswombat5309 5 ปีที่แล้ว

    That was pretty awesome - Many Thanks

  • @shubhamgupta8723
    @shubhamgupta8723 4 ปีที่แล้ว

    Thnx for the video

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

  • @weida6055
    @weida6055 ปีที่แล้ว

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

  • @eriklee1131
    @eriklee1131 5 ปีที่แล้ว

    Amazing tutorial!

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

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

  • @rossgeography
    @rossgeography 4 ปีที่แล้ว

    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  4 ปีที่แล้ว

      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.

  • @arkodeepchatterjee
    @arkodeepchatterjee ปีที่แล้ว

    how to display the data on the website??

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

  • @ЯрошЖеня-с4и
    @ЯрошЖеня-с4и 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.

  • @poporosa9727
    @poporosa9727 5 ปีที่แล้ว

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

    • @fulstak
      @fulstak 5 ปีที่แล้ว +1

  • @MatteoMenozzi
    @MatteoMenozzi 3 ปีที่แล้ว

    how I load in database json?

  • @playgoods
    @playgoods 4 ปีที่แล้ว

    thank you

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

  • @a00515
    @a00515 4 ปีที่แล้ว

    Files how?

  • @yousefsadeek6640
    @yousefsadeek6640 2 ปีที่แล้ว

    24:58 iffffffffffffffffffffffffffffffffffffffffff 😁😁😁😁