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 avoid query
parameters altogether? It seems every page is using query parameters
in searches.

And how should I create such URLs from within templates?

Thank you,
Jiri


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to