Alex Rivera | Logout

django url pattern for %20

Asked 2010-09-09T09:32:03.197
23

In Django what is the url pattern I need to use to handle urlencode characters such as %20

I am using (?P<name>[\w]+) but this only handles alphanumeric characters so % is causing an error

Edit
Report

1 Answer

22

If you only want to allow space:

(?P<name>[\w\ ]+)
answered 2011-10-01T05:28:20.000

Your Answer