While it may look ugly, it's actually pretty effective - depending on
what you want to enable with search queries overlaid on URL's. If you
only had simple (i.e. one word) terms, you could write the query into
the URL itself, but I found that using a url like /search/ and then
appending on ?q=...
What is the best way of adding query parameters (aka GET parameters)
to a URL?
return HttpRedirect(reverse('animal-search') + '?q=%s&page=%d' %
(animal.name, current_page))
seems awkward to me (not to mention escaping the name). How can I
avoid creating query parameters manually? Or, should I av
2 matches
Mail list logo