Search Blog Posts From Navbar - Flask Fridays #31

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 พ.ย. 2024

ความคิดเห็น • 45

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

    ▶️ Watch Entire Flask Friday Playlist ✅ Subscribe To My TH-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

  • @Abd0-7775
    @Abd0-7775 หลายเดือนก่อน +1

    Thank you for this series of fantastic videos.❤

  • @quasar7553
    @quasar7553 3 ปีที่แล้ว +9

    Can’t believe this is free thanks so much for the series!

    • @Codemycom
      @Codemycom  3 ปีที่แล้ว +1

      Very welcome!

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

    Tricky and elegant. Good stuff.

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

    Sir Elder thank you so much for the video now my request has been answered. God bless you so much

  • @sithuhtun3609
    @sithuhtun3609 3 ปีที่แล้ว +1

    I really like this series

  • @Kennethlumor
    @Kennethlumor 3 ปีที่แล้ว +1

    Now I can search 🔎 through my system using this method

  • @seahdk
    @seahdk 2 ปีที่แล้ว +6

    Hi i got a problem with the "post.searched". Where do you get the "post" from?

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

      Go back and rewatch the videos, I walk thru it step by step

    • @frengkypaw6880
      @frengkypaw6880 2 ปีที่แล้ว +1

      does it solved? i have the same problem

    • @TechWithSabri
      @TechWithSabri 8 หลายเดือนก่อน

      @@frengkypaw6880
      it's:
      post_searched not post.searched

  • @amirsharifi4446
    @amirsharifi4446 4 หลายเดือนก่อน

    hello MR John, thank you so much for your grate content even after almost 3 years it is still useful
    i just have one little question
    in a regular form you used "{{ form.name(class="form-control", placeholder='Name') }}" for an input
    but here you used a standard HTML input tag
    why did you do that and why the last version of creating an input is not working
    thank you

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

    Thanks a lot for your great work! Very helpful!!

  • @maximumggios3527
    @maximumggios3527 11 หลายเดือนก่อน +1

    hey John, im getting an error that says ‘method’ object is not iterable. Any clues to what could be the cause?
    Edit: ahh another careless mistake😂 forgot to add brackets after the .all text

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

      aha

  • @mindaugaslukosiunas
    @mindaugaslukosiunas 2 ปีที่แล้ว +2

    How to reference post variable in post.searched = form.searched.data? It's red, please which video you make it avaialble globally?

    • @akbarhasanov4001
      @akbarhasanov4001 2 ปีที่แล้ว +3

      just write post_searched

    • @ANGELDIAZ-bh4bk
      @ANGELDIAZ-bh4bk 2 ปีที่แล้ว

      @@akbarhasanov4001 thanks man🥴 you saved me

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

      @@akbarhasanov4001 gosh thank you! I was really wondering about that too and seems like I wasn't the only one

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

    When I search for a string not found in the database it returns local variable referenced before assignment. How do I handle this? I want to return a message to the html page when the searched item is not in the database.

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

    Hello John.. How do I for looking for more options?? Find post for the Content fiel work perfectly but I can't find the author's name in the same function Too... Thank for the help
    Example:
    posts = posts.filter(Posts.title.like('%' + search_input + '%'))
    posts = posts.filter(Posts.author.like('%' + search_input + '%')) ## AUTHOR

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

      Maybe it should be something like Users.query.filter(Users.username.like('%' + username + '%')) instead of posts.

  • @user-gq1ij
    @user-gq1ij 2 ปีที่แล้ว

    Hii, my assignment requires a search, and it clearly states this for a CRUD web app
    "Restful microservice for searching an employee based on Name and address "
    Can you please suggest me how to do that or what it means

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

      If you don't even know what it means, you should speak with your instructor.

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

    Hi John, quick question for you? can you do a video on how to create or manipulate graphics or images? I want to make an Astrology program but i am not sure what library to use for the graphical Wheel that tells you what planet is in what Zodiac. .....any tips? or pointers?

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

      Not with Flask

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

    hey how can i do this with flask, vuetify and axios?

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

      Never heard of those last two things

    • @toasterv4205
      @toasterv4205 10 หลายเดือนก่อน

      :( vue is a framework and vuetify is a no design skills required Open Source UI Library with beautifully handcrafted Vue Components. Axios is a promise-based HTTP library that lets developers make requests to either their own or a third-party server to fetch data.@@Codemycom

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

    TypeError: 'method' object is not iterable
    i wonder, why came out this?
    please help me..!

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

      What did you do differently from the video?

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

    hello at @5.40 my post. is always getting underlined, any help please? :') Appreciate it

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

      underlined how?

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

      does it solved? i have the same problem

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

    where is the post in post.searched coming from? I get an error in my code if I use that. "post is undefined"

    • @aaronploetz252
      @aaronploetz252 10 หลายเดือนก่อน

      So I'm not sure which video post gets defined in. But I was able to get it to work by defining a simple "class Post():" at the end of app.py, with a lone property of "searched: str" and then I just had to define "post = Post()" as the form validation completes.

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

      exactly my problem..

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

      @@aaronploetz252 i keep getting jinja2 error while trying to implement it on my code

    • @amirsharifi4446
      @amirsharifi4446 4 หลายเดือนก่อน

      i just got rid of the search. part :D