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
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
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 yesterd
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 13:2
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 Ite
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 a
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*
*Msc
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
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
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
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
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=
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 ove
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
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
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 fe
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 m
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 workin
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 l
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 U
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 wi
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.
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
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
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
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'. However, if you
> > loo
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
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 my nav-bar that was
>
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
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 thi
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
> need
> > ?
>
> I have a search function which is already wo
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 in views.py but I
want to refine
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 really a question about regular expressions, not about
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 fairly
> complex regular
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 this.
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-users+unsubscr...@googlegroups.
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 mes
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
> existin
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 r
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'
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
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()
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:
http://dja
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 docu
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 wrote:
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 so
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 sim
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
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 djan
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,
> * indexi
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 r
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
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
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 dj
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 t
sults are a list of dictionaries where each dictionary has fields:
url, preview 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 to
56 matches
Mail list logo