On Dec 12, 5:04 pm, GoSantoni <mj.schuur...@gmail.com> wrote: > Hey i've got a very basic question about django form processing. Got > haystack installed and searching works fine in the standard search > template (http://haystacksearch.org/docs/tutorial.html#search- > template) in the /search . Though i want to use the search box defined > by {{ form.as_table }} in another template in /blog . Just copying > {{ form.as_table }} fails to display the input field so what part of > the views.py or the forms.py needs to be copied from the haystack app? > Or what is another solution? So far in /blogs/blogs.html > > <form method="get" action="../search/"> > <table> > {{ form.as_table }} > > <tr> > <td> </td> > <td> > <input type="submit" value="Search"> > </td> > </tr> > </table> > > My goal is just to display the input box and send the query to /search > so the results are displayed on that page > > Thanks in advance!
I'm not really sure what you are asking. If the {{ form }} isn't displaying, then look to your view that renders the template. Are you building the form right and passing it to the template correctly? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.