django
Django-Haystack returns no results in search html
I am using Django-Haystack with elasticsearch backend. When I do a query I get no results on HTML. so, I tried the debugging steps suggested in the Haystack docs by typing the following into a Django shell, and I can see that all the text I want has been indexed. class BasicSearchView(SearchView): template_name = 'search.html' queryset = SearchQuerySet().models(EnMovielist)[:10] form_class = SearchForm url.py url(r'^search/', BasicSearchView.as_view(), name='search_view'), serarch.html {% for result in page.object_list %} {% if result.object.name %} <table class="table table-striped table-hover" cellspacing="0" id='result_table'> <thead> <tr> <th>a</th> <th>b</th> </tr> </thead> <tbody> <tr class="active"> <td><a href="{% url 'actress_detailview' result.object.name %}"><img src="http://52.221.245.150/media/enActress/{{result.object.image_paths}}" class="img-circle" class="img-responsive" alt="{{result.object.name}}"></td> <td>{{ result.object.name }}</td> </tr> </tbody> </table> What else can I try?
Related Links
django app file structure
Django runserver error when specifying port
Do I need to optimize database access in django templates?
Django admin query/search form
Django Next Parameter Redirect - Adding Additional Parameters
custom-unique Field with relation to ManyToManyField
NoReverseMatch (related to pk) : django
Django: generate download link
Django queryset. Convert output to list
Access missing value in form.cleaned_data
Configuring Django/Pinax Email
Django Book OUTDATE CSRF protection
Django mod_wsgi request takes 6 secs
Django query with random
how do I know I am dealing with the extra (empty) form within a formset?
del vs delete()