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:
2👍
%20
is just a space, so your regex should match a space character, not a literal %20
string.
- [Django]-Difference between request.user vs. get_user(request) in Django?
- [Django]-Google app engine + python (django) deployment error: Error loading MySQLdb module
Source:stackexchange.com