_javascript_ it that needs to be done dynamically otherwise redirect()

 

Sent from Mail for Windows 10

 

From: Ali Ahammad
Sent: 20 May 2020 22:32
To: Django users
Subject: 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 should write a views.py function where you should use

query=request.GET[‘queer’]

Object_list=Post.objects.filter(title__icontains=query)

*same for the content If you want and then you should use union*

Return render(request,’search.html’,{ ‘object_list’:object_list,’query’:query})

 

Then in the sign.html use ur home.html or anything and write according to your requirement

 

You don’t need to use java

 

--

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/277d37ed-188f-4ad1-960a-e4f5eceee3d0%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/5ec562fc.1c69fb81.b8149.a086%40mx.google.com.

Reply via email to