Re: Django Search Between 2 Dates

2021-02-04 Thread Siarhei Siarhei
https://otus.ru/nest/post/286/ среда, 3 февраля 2021 г. в 21:12:36 UTC+3, thiago.parolin: > If you want clien-side, then you need to make some script-fu using jquery > or anything like that. > > Em qua., 3 de fev. de 2021 às 10:40, Steven Mapes > escreveu: > >> Are you looking at client-side

Re: Django Search Between 2 Dates

2021-02-03 Thread Thiago Luiz Parolin
If you want clien-side, then you need to make some script-fu using jquery or anything like that. Em qua., 3 de fev. de 2021 às 10:40, Steven Mapes escreveu: > Are you looking at client-side filtering within datatables or server side > filtering? Thiago's suggestion related to using filters when

Re: Django Search Between 2 Dates

2021-02-03 Thread Thiago Luiz Parolin
I will try to explain, although I am not a good teacher. Suppose you have an 'Example' model that has a 'data' field with 'auto_now_add = True' And a function 'yesterday()' that returns yesterday, and 'past()' that returns 'yesterday() minus some days'. if you want to filter items between

Re: Django Search Between 2 Dates

2021-02-03 Thread Steven Mapes
Are you looking at client-side filtering within datatables or server side filtering? Thiago's suggestion related to using filters when you fetch the queryset (https://docs.djangoproject.com/en/3.1/topics/db/queries/#retrieving-specific-objects-with-filters) On Wednesday, 3 February 2021 at

Re: Django Search Between 2 Dates

2021-02-03 Thread Eugene TUYIZERE
Dear Thiago, Can I have some documentations or sample codes please? On Wed, 3 Feb 2021 at 15:16, Thiago Luiz Parolin wrote: > Hi... > Normally i use field__lte and field__gte > > Em qua, 3 de fev de 2021 08:11, Eugene TUYIZERE > escreveu: > >> Dear Team, >> >> I need help. I have a list of

Re: Django Search Between 2 Dates

2021-02-03 Thread Thiago Luiz Parolin
Hi... Normally i use field__lte and field__gte Em qua, 3 de fev de 2021 08:11, Eugene TUYIZERE escreveu: > Dear Team, > > I need help. I have a list of Items in a table. And I want to filter some > data between dates (start and end date). Please help me to do a search > between the two date. I

Django Search Between 2 Dates

2021-02-03 Thread Eugene TUYIZERE
Dear Team, I need help. I have a list of Items in a table. And I want to filter some data between dates (start and end date). Please help me to do a search between the two date. I am using Data table but I can use the other way if possible for this purpose. Regards, -- *TUYIZERE Eugene*

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, >

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

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

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

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,

Re: how do I make django search for male or female without needing to specify an age?

2018-01-28 Thread Andy
Why do you make a POST request for displaying a list? Use GET parameters like its done for admin filters. And for building an API that returns JSON Data use DjangoRestFramework and you will just need to define your serializer fields .. the rest is taken care of for you. That code above looks

Re: how do I make django search for male or female without needing to specify an age?

2018-01-26 Thread Julio Biason
Hi Eileen, Your problem seems to be the line if form.is_valid() and form.data['gender'] != '-': It seems it will only accept the form if the gender is not "-"; if you change that (say, removing the part after the and), it should solve it. ... although you should have a better

Re: how do I make django search for male or female without needing to specify an age?

2018-01-26 Thread eileen
I should add that this initally loads a list of children without specifying either gender or age On Friday, January 26, 2018 at 12:05:04 PM UTC-5, eil...@themaii.org wrote: > > I have a file: views.py which refers to two main fields on the page: age > and gender > Right now, the search requires

how do I make django search for male or female without needing to specify an age?

2018-01-26 Thread eileen
I have a file: views.py which refers to two main fields on the page: age and gender Right now, the search requires that an age to be chosen whether or not the gender is, and I'd like to make the age optional as well. I.e get all the children. Additionally, I'd like to search for only males or

Re: Django search

2017-01-18 Thread Luis Zárate
This could be usefull Model.objects. filter(q='hello', b='world') Can be expressed as params ={'q': 'hello', 'b': 'world') Model.objects.filter (**params) El martes, 17 de enero de 2017, Branko Zivanovic < international11...@gmail.com> escribió: > Yes that is true, and I have succeeded in

Re: Django search

2017-01-17 Thread Branko Zivanovic
Yes that is true, and I have succeeded in making select menu and checkbox by using Django's forms and their widgets. Thanks anyway! уторак, 17. јануар 2017. 21.04.51 UTC+1, Fred Stluka је написао/ла: > > Branko, > > You may need to explain a little more. > > It sounds like you have search

Re: Django search

2017-01-17 Thread Fred Stluka
Branko, You may need to explain a little more. It sounds like you have search working when you type the search string into a HTML text box.  True? What do you want to do with the menu and checkbox?  Are you trying to arrange for the text of the menu

Re: Django search

2017-01-17 Thread Branko Zivanovic
Thank you for reply! I'm fine with text input but I also want select menu and checkbox. I want to use it to somehow filter my search. I'm not sure how it fits anyway in bigger picture. How do people make search with select menu and checkbox? Best, Branko понедељак, 16. јануар 2017. 07.13.44

Re: Django search

2017-01-15 Thread Constantine Covtushenko
Hi Branco, Sorry, but can you be more specific? If you've got the result what is your concern? Do you only need to switch into forms? Regards, Constantine C. On Sun, Jan 15, 2017 at 2:41 PM, Branko Zivanovic < international11...@gmail.com> wrote: > How do i implement search on django website

Django search

2017-01-15 Thread Branko Zivanovic
How do i implement search on django website with select menu and checkbox? I've succeeded in adding basic text input and it works but I didn't use django forms. How do I add this type of search? -- You received this message because you are subscribed to the Google Groups "Django users" group.

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 >

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 =

Re: Django Search via Form Redirect to URL

2014-07-28 Thread Conner DiPaolo
On Monday, July 28, 2014 11:49:12 AM UTC-7, Branko Majic wrote: > > I have tried hacking your code on top of one of my search pages, and > definitively managed to get it working once I added the name for the > input. > > Without the name, the search view would otherwise just fall through and

Re: Django Search via Form Redirect to URL

2014-07-28 Thread Branko Majic
On Mon, 28 Jul 2014 07:41:23 -0700 (PDT) Conner DiPaolo wrote: > > > On Monday, July 28, 2014 4:42:07 AM UTC-7, Branko Majic wrote: > > > > > > In your search method, if the request method was POST, you are trying > > to retrieve submitted data via key 'search_string'.

Re: Django Search via Form Redirect to URL

2014-07-28 Thread Conner DiPaolo
On Monday, July 28, 2014 4:42:07 AM UTC-7, Branko Majic wrote: > > > In your search method, if the request method was POST, you are trying > to retrieve submitted data via key 'search_string'. However, if you > look at your HTML form, there does not seem to be any kind of input > field called

Re: Django Search via Form Redirect to URL

2014-07-28 Thread Branko Majic
On Sun, 27 Jul 2014 15:11:20 -0700 (PDT) Conner DiPaolo wrote: > > > I already have a valid search function mapped in my Django project, you > type in a url '/project/search//' and it responds the corresponding search > results on a page. I want to have a search box in

Django Search via Form Redirect to URL

2014-07-27 Thread Conner DiPaolo
I already have a valid search function mapped in my Django project, you type in a url '/project/search//' and it responds the corresponding search results on a page. I want to have a search box in my nav-bar that was created in my base.html and have users type in a query and it will redirect

Re: django search query

2013-07-01 Thread Doug Ballance
On Saturday, June 29, 2013 11:32:19 PM UTC-5, Harjot Mann wrote: > > Is there any search query in django which can ignore vowels like I want to > make a query which displays all the clients name who writes their name as > 'amanjit' or 'amanjeet'. > It should take take ee=i or anything like

Re: django search query

2013-07-01 Thread Amirouche Boubekki
2013/7/1 Harjot Mann > On Sun, Jun 30, 2013 at 11:18 PM, Amirouche Boubekki > wrote: > > You can do this by creating an extra field in the model with the name > > without vowels in it and doing a simple filter on it ? Is that what you >

Re: django search query

2013-06-30 Thread Harjot Mann
On Sun, Jun 30, 2013 at 11:18 PM, Amirouche Boubekki wrote: > You can do this by creating an extra field in the model with the name > without vowels in it and doing a simple filter on it ? Is that what you need > ? I have a search function which is already working

Re: django search query

2013-06-30 Thread Amirouche Boubekki
You can do this by creating an extra field in the model with the name without vowels in it and doing a simple filter on it ? Is that what you need ? 2013/6/30 Harjot Mann > On Sun, Jun 30, 2013 at 10:18 PM, Scot Hacker > wrote: > > This is

Re: django search query

2013-06-30 Thread Harjot Mann
On Sun, Jun 30, 2013 at 10:18 PM, Scot Hacker wrote: > This is really a question about regular expressions, not about Django. > Whether you implement simple or complex search in Django, whether you use > Django or some other platform, this is going to come down to using a

Re: django search query

2013-06-30 Thread Scot Hacker
On Saturday, June 29, 2013 9:32:19 PM UTC-7, Harjot Mann wrote: > > Is there any search query in django which can ignore vowels like I want to > make a query which displays all the clients name who writes their name as > 'amanjit' or 'amanjeet'. > It should take take ee=i or anything like

Re: django search query

2013-06-30 Thread Harjot Mann
Reply waited. -- Harjot Kaur Mann Blog: http://harjotmann.wordpress.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 search query

2013-06-29 Thread Harjot Mann
Is there any search query in django which can ignore vowels like I want to make a query which displays all the clients name who writes their name as 'amanjit' or 'amanjeet'. It should take take ee=i or anything like this. Please help me I have to finish my task asap. -- You received this

Re: django search

2013-04-16 Thread Daniel Roseman
On Saturday, 13 April 2013 16:59:49 UTC+1, Harjot Mann wrote: > hello friends > > i have made a project on studnt dmc records in django...in which i search > for student' s dmcs using roll number..it works fine > but the problem is that when i am typing a fake roll number which is not >

Re: django search

2013-04-15 Thread slim
add try and catch to your request Le samedi 13 avril 2013 15:59:49 UTC, Harjot Mann a écrit : > > hello friends > > i have made a project on studnt dmc records in django...in which i search > for student' s dmcs using roll number..it works fine > but the problem is that when i am typing a fake

Working example on django-search-lucene

2013-01-17 Thread Barun Saha
Hello, Could anyone please provide a working example on django-search-lucene? I have been going through this tutorial<https://code.google.com/p/django-search-lucene/wiki/UseDSLInYourDdjangoApps>, but ending up with an error while trying to search: type object 'Document' has no att

Re: Implementing Django Search

2012-06-19 Thread DF
Thank you. I ended up using Haystack but I appreciate your insight. On Tuesday, June 19, 2012 12:08:44 AM UTC-4, Daniel Sokolowski wrote: > > I also found that piece of code when I needed to implement search - it > was confusing so I ended up with my own approach that was easier to > understand

Re: Implementing Django Search

2012-06-18 Thread Daniel Sokolowski
I also found that piece of code when I needed to implement search - it was confusing so I ended up with my own approach that was easier to understand and simpler at least to me - I pasted an example of live code here: http://dpaste.org/KYhUq/ The searching piece of code is in the form_valid()

Re: Implementing Django Search

2012-06-18 Thread Nikolas Stevenson-Molnar
There are a number of ways you can use it. Must straight-forward is to use built-in views with a customized template: http://django-haystack.readthedocs.org/en/latest/tutorial.html#setting-up-the-views You can get a bit more advanced by using the various search forms with your own view:

Re: Implementing Django Search

2012-06-18 Thread DF
Does it provide instructions on connecting it to a search form? Dumb question, but sometimes documentation can be lacking. On Monday, June 18, 2012 2:40:58 PM UTC-4, Nikolas Stevenson-Molnar wrote: > > I've used Haystack with Whoosh: http://haystacksearch.org/. It's > straight-forward, well

Re: Implementing Django Search

2012-06-18 Thread Nikolas Stevenson-Molnar
I've used Haystack with Whoosh: http://haystacksearch.org/. It's straight-forward, well documented, and mimics the Django ORM. No need to parse the query yourself or anything like that, just pass the raw input to Haystack and enjoy delicious search results :) _Nik On 6/18/2012 11:23 AM, DF

Implementing Django Search

2012-06-18 Thread DF
I'm working on my first project and I'm attempting to implement a basic search function where users can search for a specific terms. There are many options available, most a bit too heavy for what I require. I found this posting which illustrates how to implement a basic search function that

Django Search Form in Admin

2009-07-01 Thread Alessandro Ronchi
Given a simple model, I need to write a search form in admin (not the text search inside admin model list). It's the same as a form.as_table() but inside admin. Is it possible? Any working example? I also need to insert a button with a link to export the result queryset to Excel or PDF. (a

Re: ANNOUNCE: Django search with Lucene.

2008-07-15 Thread Spike^ekipS
own lucene search in django. As you said, PyLucene has threading problems in some circumstance, but with the latest PyLucene(with JCC), which is used in Django search with Lucene I did not found any problems on Threading, but more detailed and sophiscated testing will be needed. Thanks. On Jul

Re: ANNOUNCE: Django search with Lucene.

2008-07-15 Thread free won
mark it. thanks for your share. -- Vince Lombardi - "Winning is habit. Unfortunately, so is losing." --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: ANNOUNCE: Django search with Lucene.

2008-07-15 Thread Ben Firshman
django users and developers. > > I'm happy to let you know my django application, Django search with > Lucene(DSL). I try > to tighly integrate the Lucene with Django, so I find the way to use > lucene easily in Django. > > Django search with Lucene(DSL) supports, > * indexing ob

Re: ANNOUNCE: Django search with Lucene.

2008-07-15 Thread Spike^ekipS
I did not test with fcgi, I'm running 'django search with lucene' in the Twisted Web2, but new pylucene(PyLucene with JCC) support the attachCurrentThread(and detachCurrentThread) for Thread-SAFE and the Django search with Lucene was tested in thread environment(index writing and reading). I read

Re: ANNOUNCE: Django search with Lucene.

2008-07-15 Thread vicalloy
2008/7/15, Spike^ekipS <[EMAIL PROTECTED]>: > > > Hi, django users and developers. > > I'm happy to let you know my django application, Django search with > Lucene(DSL). I try > to tighly integrate the Lucene with Django, so I find the way to use > lucene easil

ANNOUNCE: Django search with Lucene.

2008-07-14 Thread Spike^ekipS
Hi, django users and developers. I'm happy to let you know my django application, Django search with Lucene(DSL). I try to tighly integrate the Lucene with Django, so I find the way to use lucene easily in Django. Django search with Lucene(DSL) supports, * indexing object automatically when

Re: Django search engines

2008-05-23 Thread [EMAIL PROTECTED]
I would also be interested in any advice on this. Every time I implement a search I seem to hit a dead end. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Django search engines

2008-05-22 Thread Greg
Does anyone have any experience using djangosearch, djapian, or django- search? Any tutorials for using any of them? I'm kinda unsure as to where to begin implementing any of them. --~--~-~--~~~---~--~~ You received this message because you are subscribed

Simple Django search

2007-06-06 Thread Maciej Bliziński
and title. The code is available from: http://code.blizinski.pl/django-search/ This is very immature code which I've put together last few days, but it does the job and I think it could be useful for other people too. It's biggest strength is that it's enough to put few files into the django/contrib