<form action="/search/" method="get"><input type="text" name="q"/>
<input type="submit" value="Search"></form>
This form is in my top level site template. The /search/ url is part of
a search application.
There's an example of this working at http://www.brassbandresults.co.uk/
Hope that helps,
Tim.
http://docs.djangoproject.com/en/dev/topics/templates/#template-inheritance
regards
Steve
--
I'm no expert.
"ex" == "has-been"; "spurt" == "drip under pressure"
"expert" == "has-been drip under pressure".
Personally, I like all of my forms to be classes. If you want that,
you should create a context processor.
http://docs.djangoproject.com/en/dev/ref/templates/api/#writing-your-own-context-processors
Cheers, Roald
Not on http://www.brassbandresults.co.uk/. The search field there
searches just the name field of various model objects so it's easier to
just do model selects.
Here's an article I wrote after using Haystack and Whoosh to improve the
search on http://www.drumcoder.co.uk/, if that helps.
http://drumcoder.co.uk/blog/2010/may/19/django-text-search-haystack-and-whoosh/
Tim.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Yes, somebody can use template tag, somebody content processor and the
most intuitive solution is to use template inheritance, as was
suggested.
Thank you, Tim. Wish you good luck. I loved your musician web site.