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()

Categories

HOME
spark-streaming
apache-flink
forms
yahoo-finance
obfuscation
solaris
gradient
javacc
edge
soa
emscripten
hpc
retrofit2
flume
appcelerator-studio
text-mining
scrolltop
event-sourcing
feathersjs
cfml
solrcloud
r-mice
react-toolbox
event-store
tosca
highstock
beta
ms-access-web-app
has-and-belongs-to-many
ms-access-2003
entity-relationship-model
iis-express
vex
testbed
erb
clickjacking
least-squares
imx6
lubridate
reason
openproject
sessionstorage
numberpicker
xv6
datacachefactory
escpos
postgresql-8.4
dbnull
contract
android-checkbox
xmldocument
file-sharing
proget
yii2-api
appdomain
backbone-collections
dt
flac
baidu
reachability
vcloud-director-rest-api
cubism.js
pacemaker
google-cloud-console
myspace
mapinfo
eigenvector
google-query-language
redis-cluster
createprocess
ellucian-scribe
grass
cycle2
httpruntime.cache
relativelayout
opl
forwarding
.bash-profile
exceldatareader
nodelist
ghcjs
big-ip
post-commit-hook
teaspoon
human-computer-interface
renderer
authlogic
scriptaculous
gtm-oauth2
kendo-dataviz
scringo
octal
pagedown
server-administration
qi4j
boost-msm
zope.interface
multiplexing
jsr286
isa-swizzling
denied
tournament
clrstoredprocedure
inline-formset
rowlex
addchild
lobo-cobra
escrow
product-management
appliance

Resources

Encrypt Message