Re: Add search to my blog app

2020-05-20 Thread sachin chaurasiya
>From which book you have had learnt django On Wed, May 20, 2020, 9:46 PM sunday honesty wrote: > 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 po

RE: Add search to my blog app

2020-05-20 Thread Vishesh Mangla
Or one thing you can do w/o _javascript_, that is send a post request to the server through a form and then redirect to a view with a blog matching that search query.  Template: {{csrf_token}} //see the correct template tagSubmit Views:def index(request):    if request.method ==”POST”:    searc

RE: Add search to my blog app

2020-05-20 Thread Vishesh Mangla
_javascript_ it that needs to be done dynamically otherwise redirect() Sent from Mail for Windows 10 From: Ali AhammadSent: 20 May 2020 22:32To: Django usersSubject: Add search to my blog app At first you should make search search template where you should put what and how you want display Then you

RE: Re: Add search to my blog app

2020-05-20 Thread Vishesh Mangla
Then you have a better option to learn react(a frontend framework for _javascript_). You cannot do dynamic stuff on the web without using _javascript_. Sent from Mail for Windows 10 From: sunday honestySent: 20 May 2020 21:57To: django-users@googlegroups.comSubject: Re: Add search to my blog app I

Re: Add search to my blog app

2020-05-20 Thread sunday honesty
I don't know JavaScript On Wed, May 20, 2020, 5:25 PM Vishesh Mangla wrote: > Hi if you want a search bar you need javascript which will do the dynamic > stuff. Add an event listener to you of html and use > “change” as the event. Then you need to insert and remove elements on the > DOM based o

RE: Add search to my blog app

2020-05-20 Thread Vishesh Mangla
Hi if you want a search bar you need _javascript_ which will do the dynamic stuff. Add an event listener to you 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