Django search

55 Aufrufe
Direkt zur ersten ungelesenen Nachricht

Branko Zivanovic

ungelesen,
15.01.2017, 07:41:3315.01.17
an Django users
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?

Constantine Covtushenko

ungelesen,
16.01.2017, 01:13:4416.01.17
an django...@googlegroups.com
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 <internati...@gmail.com> wrote:
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.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/078841f1-a976-4c22-bb2f-ff5069bdce1d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Branko Zivanovic

ungelesen,
17.01.2017, 09:32:0417.01.17
an Django users, constantine...@gmail.com
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 UTC+1, 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 <internati...@gmail.com> wrote:
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.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.

Fred Stluka

ungelesen,
17.01.2017, 15:04:5117.01.17
an django...@googlegroups.com
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 label and the text of the
checkbox label to be combined somehow to form the search
string?

--Fred

Fred Stluka -- mailto:fr...@bristle.com -- http://bristle.com/~fred/
Bristle Software, Inc -- http://bristle.com -- Glad to be of service!
Open Source: Without walls and fences, we need no Windows or Gates.

Branko Zivanovic

ungelesen,
17.01.2017, 18:46:5717.01.17
an Django users
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 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 label and the text of the
checkbox label to be combined somehow to form the search
string?

Luis Zárate

ungelesen,
18.01.2017, 19:14:0918.01.17
an django...@googlegroups.com
This could be usefull


Model.objects. filter(q='hello', b='world')

Can be expressed as

params ={'q': 'hello', 'b': 'world')
Model.objects.filter (**params)
> To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/642c076f-aafd-46b1-b63c-0a8d174e8595%40googlegroups.com.

> For more options, visit https://groups.google.com/d/optout.
>

--
"La utopía sirve para caminar" Fernando Birri



Allen antworten
Antwort an Autor
Weiterleiten
0 neue Nachrichten