Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to search in django

from django.db.models import Q
results = BlogPost.objects.filter(Q(title__icontains=your_search_query) | Q(intro__icontains=your_search_query) | Q(content__icontains=your_search_query))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #search #django
ADD COMMENT
Topic
Name
7+2 =