2👍
✅
Those urls are looked up in the order you defined them. So this line url(r'^(?P<real_name>[\w|\W]+)/', usernames_by_player)
grabs all input from the request url. You should distinguish these urls like:
url(r'^realname/(?P<real_name>[\w|\W]+)/', usernames_by_player),
url(r'^username/(?P<user_name>[\w|\W]+)/', avatars_by_username),
Hope this leads into the right direction.
Source:stackexchange.com