id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 9315 Keyword arguments with spaces and the url tag Alexis Bellido Natalia Bidart "Hi, I asked about this on the django-users group and was told it was probably a bug so I'm reporting it: I was testing named url patterns and I have something like this in my URLConf: {{{ url(r'^search/(?P.*)$', 'books.views.search', name='search_page'), }}} 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: {{{

{% url search_page words=""someword"" %}

}}} 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: {{{

{% url search_page words=""someword otherword"" %}

}}} 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?" closed Template system 1.0 fixed url, tplrf-fixed, pycamp2009 Robert matiasb Accepted 1 0 0 0 0 0