1👍
✅
You forgot to add the caret sign (^
) at the first position of regex. So the first regex matched “update_about/” part of the url.
Fixed code:
url(r'^(?P<user_name>[\w@%.]+)/$', 'user_related.views.profile', name='profile'),
url(r'^(?P<user_name>[\w@%.]+)/update_about/$', 'user_related.views.update_about', name='update_about'),
Source:stackexchange.com