Hi if you want a search bar you need _javascript_ which will do the dynamic stuff. Add an event listener to you <input type=”search”> of html and use “change” as the event. Then you need to insert and remove elements on the DOM based on the text in the search box. For more info ask on  https://webchat.freenode.net/ in the #_javascript_.

 

Sent from Mail for Windows 10

 

From: sunday honesty
Sent: 20 May 2020 21:45
To: Django users
Subject: Add search to my blog app

 

Hello everyone! I have got a question. I am a Django beginner trying to build my first web app after completing a book.

 

I made an app I called developers forum where authenticated users can post something like question or code achievement and another can comment in form of answer.

I want to add a search functionality which was not covered in the tutorial.

I browsed out and found how I could add the search but the search results will be displayed to a designated urls created for the purpose. I want to be able to redirect the searcher to the exact post containing the keyword they have typed in the search form with the text highlighted. How can I achieve that... If you need any pieces of my code to be able to help me, be kind to ask me; I'll post a link to where you can find it.

Thanks in advance.

 

--

You received this message because you are subscribed to the Google Groups "Django users" group.

To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/cdbf7038-480e-446f-aeac-e079ad575e47%40googlegroups.com.

 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5ec559c3.1c69fb81.ccc5c.9d57%40mx.google.com.

Reply via email to