django - I want to include haystack search in all pages -



django - I want to include haystack search in all pages -

i have configured haystack search index page. have configuration below

urlpatterns = patterns('', url(r'^admin/doc/', include('django.contrib.admindocs.urls')), url(r'^admin/', include(admin.site.urls)), url(r'^$',searchview( template='index.html', form_class=searchform),name="haystack_search")

but when include index.html in other pages, dont see search bar because configured index page. ideas, if there way include haystack search context

personally wouldn't give search results root url, rather utilize line haystack documentation suggests.

(r'^search/', include('haystack.urls')),

then, place search form in base of operations template point url in form action. template inheriting base of operations include form. again, haystack documentation gives directions how might organise template code.

django django-templates django-urls django-haystack

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -