in application users names can contain chars :
. @ - _ i want make api endpoint api/users/{username} it's impossible these chars in url. how bite kind of problem?
you need use url encoding , decode in view.
so "username. @ - _" encoded "username.+%40+-+_".
to decode can use urllib.unquote(url).decode('utf8').
Comments
Post a Comment