I looked up in the net, but cannot find any answer (maybe my search term is not accurate)
I want to pass a string parameter in the django url, by using this pattern:
urlpatterns=('item.views',
url(r'^receive/find/(?P<key>\s+)/$', 'find'))
For example the passed url will be something line this /item/receive/PO/. But django never recognizes this as the pattern above.
Please take not that the url is decoupled into item app urls
In your pattern,
\smatches a whitespace character. Try with\w. http://en.wikipedia.org/wiki/Regular_expression#Examples