Hi, I'm reading the docs and was testing named url patterns, I have something like this in my URLConf:
url(r'^search/(?P<words>.*)$', 'books.views.search', name='search_page'), And the view is defined like this: def search(request, words): Now I'd like to print a link to the search page with certain words from a template and used the url tag like this: <p>{% url search_page words="someword" %}</p> When viewing on the browser I get something like '/search/someword', which is good. My question is how do I pass more than one word in the 'words' parameter? If I do this: <p>{% url search_page words="someword otherword" %}</p> I get this error: TemplateSyntaxError at (my page name here) Could not parse the remainder: '"someword' from '"someword Can the url tag handle parameters with spaces? If so, how? Or maybe I'm missing the whole point and I should do this is a different way? Thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---