search page

2016-01-26 Thread Xristos Xristoou
hello, i want to an easy way to create search page on my site to searching only the titles. who is the better and easy way for to doa that ? mayde some tools to install ? any idea ? -- You received this message because you are subscribed to the Google Groups "Django users"

django Search page

2015-03-01 Thread Sabeen Sha
which is the best way to implement the following:: i will be having a text box and a Add button Along with a table below it containing headers class AssesmentBuildingDetails(models.Model): numbuildingid1 = models.CharField(max_length=14,unique=True) numbuildingid2 = models.CharField(max

Re: search page

2016-01-26 Thread James Schneider
On Tue, Jan 26, 2016 at 1:46 PM, Xristos Xristoou wrote: > hello, > > > i want to an easy way to create search page on my site to searching only > the titles. > who is the better and easy way for to doa that ? > mayde some tools to install ? > any idea ? >

Re: search page

2016-01-27 Thread Ilias Dimos
The easiest way i have used is this http://toastdriven.com/blog/2008/nov/09/quick-dirty-search-django/ On Tuesday, January 26, 2016 at 11:46:21 PM UTC+2, Xristos Xristoou wrote: > > hello, > > > i want to an easy way to create search page on my site to searching only > th

Re: search page

2016-01-28 Thread pa xapy
queryset.filter(title__icontains=query) is not enough? On Wednesday, January 27, 2016 at 12:46:21 AM UTC+3, Xristos Xristoou wrote: > > hello, > > > i want to an easy way to create search page on my site to searching only > the titles. > who is the better and easy way for

Re: django Search page

2015-03-06 Thread Collin Anderson
Hi, You'll need to use javascript for that. Collin On Monday, March 2, 2015 at 2:27:35 AM UTC-5, Sabeen Sha wrote: > > which is the best way to implement the following:: > i will be having a text box and a Add button > > Along with a table below it containing headers class > AssesmentBuildingD

django search page not found error

2020-03-24 Thread omid jahadi
Hello everybody! I want to search in a ManyToManyField in the DetailView. It works fine if a user with the same query exist, but if there isn't a user, i get page not found error. models.py: class agents(models.Model): agent_type = models.ForeignKey(types, on_delete=models.SET_NULL, blank=

Re: django search page not found error

2020-03-24 Thread Motaz Hejaze
Add null=True to manytomany field On Wed, 25 Mar 2020, 2:02 am omid jahadi, wrote: > Hello everybody! I want to search in a ManyToManyField in the DetailView. > It works fine if a user with the same query exist, but if there isn't a > user, i get page not found error. > > models.py: > > class a

Re: django search page not found error

2020-03-25 Thread omid jahadi
It doesn't work ... Actually, ManyToManyField is not null ... I get error when i search a keyword that doesn't match with any user! ... For example, first_name is 'Omid', when i search 'o' or 'm', search works fine and return 'Omid', but, when i search 'k', i get PageNotFound error On Wednesday

Re: django search page not found error

2020-03-25 Thread Motaz Hejaze
No problem , you can catch this exception in your views.py if you want .. On Wed, 25 Mar 2020, 12:46 pm omid jahadi, wrote: > It doesn't work ... Actually, ManyToManyField is not null ... I get error > when i search a keyword that doesn't match with any user! ... For example, > first_name is 'Om

Re: django search page not found error

2020-03-26 Thread omid jahadi
How can i handle this exception ... I have this error: "No agents found matching the query" On Thursday, March 26, 2020 at 12:08:14 AM UTC+4:30, Motaz Hejaze wrote: > > No problem , you can catch this exception in your views.py if you want .. > > On Wed, 25 Mar 2020, 12:46 pm omid jahadi, > wrot

making a search page using generic class views

2011-07-26 Thread akonsu
hello, I am trying to migrate my function based views to class based ones. I have a search page with a form (which is represented by MySearchForm class). The form's action URL is set to the current page (). When the form is submitted the search results are shown in the page below the for

Search Page with Pagination, why do I need to refresh the page to see updated results?

2008-02-03 Thread boralyl
I'm using django and I have a search page that uses pagination. All works well, but if I change the search term the first page is fine, but if I go to the 2nd page I see results from the previous search. I must manually reload the page to see the 2nd page for the new search term. Is