Render Search form on other templates than search.html (mysite.com/search)

20 views
Skip to first unread message

Kyle Jez

unread,
Mar 16, 2017, 1:44:57 PM3/16/17
to django-haystack
I've dug through Stackoverflow and this Google Group, finding a few similar questions with no answers that work for me. I've also done what I can with my knowledge.

Bottom line: With a sidebar blog search in base.html, the search form only renders and works correctly when at the /search/ page. 

What do I need to do to have the search form work at all templates that extend the base.html, which is where I want the search form, then return results (with the working sidebar) at /search/?

Steve Schwarz

unread,
Mar 16, 2017, 2:09:53 PM3/16/17
to django-...@googlegroups.com
It sounds like you need to set the form's action attribute to "/search/"

Steve

--
You received this message because you are subscribed to the Google Groups "django-haystack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-haysta...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Sent from Gmail Mobile
Reply all
Reply to author
Forward
0 new messages