I have written a custom platform for display products (like ecommerce with no carts and shipping)
Anywway, I have haystack up and running at 127.0.0.1/myapp/search, I can perform searches, the results return perfectly and all works as it should.
here is my working urls
And currently my search file, which redirects to an empty base.html (with the content block)
Now as you can see via my urls.py file, my products are loaded via a custom url + view entry.
This redirects me to a template called detail.html, which contains (you guessed it) detailed information according to what product has been loaded.
Now when I try and include my search.html file into my detail.html (the same one used with my /search entry) the code doesnt render correctly, it shows the form method, but nothing else.
What I am asking is, how can I get my haystack search code to load in my detail.html page.
Thanks.
Guessing that
formcontext variable is not set whendetails.htmltemplate is rendered. Override DetailView and set extra context data for form should make form to appear on page, something like this: