Rest Franework

35 views
Skip to first unread message

Soumen Khatua

unread,
Aug 21, 2019, 3:43:05 AM8/21/19
to django...@googlegroups.com
Hi Folks,
I want to implemnet something like if user type any query parameter then matched string should come first then if the typed words contains in between records then short length of string should come second and so on,as an example:


the--- first record
they-- second record
their--- third record
theirs-- fourth record
................


Plase tell me how I can solve this probelm. 

Thank you


Regards,
Soumen

Andréas Kühne

unread,
Aug 23, 2019, 6:46:39 AM8/23/19
to django...@googlegroups.com
Hi Soumen,

You have asked this question (or variants of it) 3 times now. If you aren't satisfied with the solutions you have received already - try replying to the suggestions you already have received. I don't think you will get different answers by repeating the same question multiple times. Also people here won't write the code for you, but we are happy to show you pointers to where you need to look. Previously we have said that you need to use the Filtering and that you will need to do a javascript query to get the information from the backend.

What kind of answer are you looking for? Because if you put together these things you will get the solution to this problem.

Best regards,

Andréas


--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPUw6Waisqm10yKOPSe4gY5S%2BX0NRg_eiBjsiGW1Ld-NAiXnZg%40mail.gmail.com.

Soumen Khatua

unread,
Aug 23, 2019, 8:26:18 AM8/23/19
to django...@googlegroups.com
Hi  Andres,
Yes I read your article what you shared with me now I understand that I need to override the inbuilt django rest framework template to get expected result. But I don't know How can i do that, So my query is what is road map to do that? As of Now I extended restframework provided base.html but How can I render  these into a template and customize it accordingly.

Thank you for your response.

Regards,
Soumen

Andréas Kühne

unread,
Aug 26, 2019, 9:16:29 AM8/26/19
to django...@googlegroups.com
Hi,

OK - If you only want to create an autocomplete list - or a dropdown list with information django restframework could be a bit of an overkill for that specific task - you could instead use something like this:

That's a plugin that creates a simple dropdown with autocomplete?

Regards,

Andréas


Reply all
Reply to author
Forward
0 new messages