[Django]-Urls in Django 1.7 when the Url Contains spaces

6👍

Don’t worry about the space percent-encoding in the URL, on the django url configuration level continue thinking about it as a usual space:

^view/(?P<event_name>[\w\s]+)$

Also see:

👤alecxe

2👍

%20 is just a space, so your regex should match a space character, not a literal %20 string.

👤mipadi

Leave a comment