Here's the link for template tag 👇

https://github.com/etianen/django-watson/wiki/Template-tags

This tag will return the searched list 👇

{% search_results search_entry_list %}


Here's the link for the frontend structure 👇

https://github.com/etianen/django-watson/blob/master/watson/templates/watson/search_results.html

Front-end code
<body>
        <h1> Search results {% if query %} for &ldquo;. {{query}}&rdquo;{%
endif %}
       </h1>

        {% if search_results %}

            {% search_results search_results %}

        {% else %}

            {% if query %}

                <p><em>There are no results to display.</em></p>

                <p><em>Try entering a less specific search term.</em></p>

            {% else %}

                <p><em>Please enter a query in the search form.</em></p>
            {% endif %}

        {% endif %}

    </body>

On Wed, Dec 9, 2020, 2:35 PM Salima Begum <salim...@rohteksolutions.com>
wrote:

> Thank you @Omkar Parab, I have tried your suggestion. It is working but
> the only thing i want is how to show the result search list in the front
> end page in template.
>
> Please can you help me out in this also.
>
> Thanks
> ~Salima
>
> On Wed, Dec 9, 2020 at 11:16 AM Omkar Parab <omkar211...@gmail.com> wrote:
>
>> Here's the link for the built-in-views,
>>
>> https://github.com/etianen/django-watson/wiki/Built-in-views
>>
>> To return search results on the home page, you need to add your,
>>
>> {â„… Url "your_home_namespace" â„…}
>>
>> in
>>
>> <form action="{â„… url 'your_home_namespace' â„…}">
>>
>> On Wed, Dec 9, 2020, 9:35 AM Salima Begum <salim...@rohteksolutions.com>
>> wrote:
>>
>>> Hi all,
>>>
>>> I am using the django watson package in my project. How to achieve to
>>> change built in views to change default template rendering and to search
>>> results in the home page.
>>>
>>> This is url of django watson
>>>
>>> '''https://github.com/etianen/django-watson/wiki/Built-in-views'''
>>>
>>> Please Help me out to achieve this, Thank you in advance,
>>>
>>> Thanks
>>> ~Salima
>>>
>>> --
>>> 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.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAMSz6bk2iK6X7sL25%3DDefbMxgcfzzokpW-T3yNoJgZp%3D8LN4jA%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAMSz6bk2iK6X7sL25%3DDefbMxgcfzzokpW-T3yNoJgZp%3D8LN4jA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> 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.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAJY8mfwf_gcAM2ZnkUNbhh4VRFua-SYqo8nPMtaoPzawVk%3DGTw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAJY8mfwf_gcAM2ZnkUNbhh4VRFua-SYqo8nPMtaoPzawVk%3DGTw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> 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.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAMSz6bky_0Lk78ose2Fu7nCfHrz0VHH_-wiyK2K%3DP%2BO45JACYA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAMSz6bky_0Lk78ose2Fu7nCfHrz0VHH_-wiyK2K%3DP%2BO45JACYA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

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

Reply via email to