Search Blog Posts From Navbar - Flask Fridays #31

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

КОМЕНТАРІ • 45

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

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

  • @Abd0-7775
    @Abd0-7775 9 днів тому +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!

  • @teclote
    @teclote 11 місяців тому

    Tricky and elegant. Good stuff.

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

    Now I can search 🔎 through my system using this method

  • @amirsharifi4446
    @amirsharifi4446 3 місяці тому

    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

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

  • @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 7 місяців тому

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

  • @maximumggios3527
    @maximumggios3527 10 місяців тому +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

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

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

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

  • @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 6 місяців тому

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

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

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

  • @user-gq1ij
    @user-gq1ij Рік тому

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

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

  • @toasterv4205
    @toasterv4205 11 місяців тому

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

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

      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

  • @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 9 місяців тому

      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 6 місяців тому

      exactly my problem..

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

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

    • @amirsharifi4446
      @amirsharifi4446 3 місяці тому

      i just got rid of the search. part :D