I want to have the search form of django-haystack on the base.html template of my blog but the results on a different template page how can I do that ?
Structure the form to submit the data to the correct URL,
<form action="/search/?q=">
<input type="text" name="q" id="id_q">
<button type="submit">Go</button>
</form>
So that code would live on the base.html page, and than submissions to it would post to the default '/search' page, the full search bar/options and results. I have this code in use on a pinax site with the default haystack install and it works.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With