muhammad haris salamat just make a form in your template, then have a
name='any name here' and then make a view in which you have to get the name
in the following way.
query = request.POST.get('any name here')
and then do this:
value = ModelName.objects.filter(Q(model_field = query)


On Thu, Jun 24, 2021 at 10:31 PM muhammad haris salamat <
harissalama...@gmail.com> wrote:

> Hi all can u help me plz how I can use filter with Contain query in Django
> I wanna fetch all data from my database with the help of filter query
>
> On Thu, 24 Jun 2021, 9:17 pm Richard Dushime, <mudaherar...@gmail.com>
> wrote:
>
>> THANK U I HAVE DONE TO FIX IT ITS NOW WORKING
>>
>> On Thu, Jun 24, 2021 at 6:04 PM Julio Cojom <jul.alejand...@gmail.com>
>> wrote:
>>
>>> Django framework uses urls to math the html files. This work with the
>>> same syntax of static files, you would use {% url 'app:viewname' %} to
>>> render any page with Django.
>>>
>>> You should check the docs of urls to understand how it works and get
>>> this done.
>>>
>>> Regards
>>>
>>> El jue., 24 de junio de 2021 9:00 a. m., Richard Dushime <
>>> mudaherar...@gmail.com> escribió:
>>>
>>>> i have a problem on my navigation bar on the index.html link when i
>>>> click on it its showing me the error (see error.png)  or everything apart
>>>> that its working fine  need ur help
>>>> <a href="index.html" class="hero-logo" data-aos="zoom-in"><img src=
>>>> "{% static 'assets/img/hero-logo.png' %}" alt=""></a>
>>>>       <div class="logo d-block d-lg-none">
>>>>         <a href="index.html"><img src=
>>>> "{% static 'assets/img/logo.png' %}" alt="" class="img-fluid"></a>
>>>>       </div>
>>>>
>>>>       <nav class="nav-menu d-none d-lg-block">
>>>>         <ul class="nav-inner">
>>>>           <li class="active"><a href="index.html">Home</a></li>
>>>>           <li class="drop-down"><a href="">About</a>
>>>>             <ul>
>>>>               <li><a href="#about">About Us</a></li>
>>>>               <li><a href="#team">Team</a></li>
>>>>             </ul>
>>>>           </li>
>>>>           <li><a href="#services">Services</a></li>
>>>>
>>>>           <li class="nav-logo"><a href="index.html"><img src=
>>>> "{% static 'assets/img/logo.png' %}" alt="" class="img-fluid"></a></li>
>>>>
>>>>           <li><a href="#portfolio">Portfolio</a></li>
>>>>           <li><a href="#pricing">Pricing</a></li>
>>>>           <li><a href="#contact">Contact</a></li>
>>>>
>>>>         </ul>
>>>>       </nav><!-- .nav-menu -->
>>>>
>>>>
>>>> --
>>>> 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/CAJCm56L%2BG%3D8tLZ%3D3sZ0%3Dh%3Ds-w5AXaLroU3nkgoKZO6Fj8xqFBw%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CAJCm56L%2BG%3D8tLZ%3D3sZ0%3Dh%3Ds-w5AXaLroU3nkgoKZO6Fj8xqFBw%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/CAHRQUHmOdq-yXfQdkDRcvjdf727U1Wr1HogjVpP1bw0o7rN61w%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAHRQUHmOdq-yXfQdkDRcvjdf727U1Wr1HogjVpP1bw0o7rN61w%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/CAJCm56Jn1WOtp-hGbFoDS6uYy8A5ZSom7fD6j_UG%3D-oM4WQWng%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAJCm56Jn1WOtp-hGbFoDS6uYy8A5ZSom7fD6j_UG%3D-oM4WQWng%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/CA%2BOEwHsNuBGuH8fr3LoooK6K78F%2BZJb0OhBMxJcCuTG-K9Zkbw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CA%2BOEwHsNuBGuH8fr3LoooK6K78F%2BZJb0OhBMxJcCuTG-K9Zkbw%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/CAKPY9pkHrO9HEPKsK15qfnKqFMkfvMR4EDqysB0MpJ2MJTKEEQ%40mail.gmail.com.

Reply via email to