Facing problem with user profile url scheme like example.com/username in django
In a django app, I need to create twitter user profile urls with following structure like: example.com/<username> example.com/<username>/friends example.com/<username>/blog example.com/<username>/some-page example.com/<username>/some-other-page My urls.py: urlpatterns = patterns('profiles.views', url(r'^(?P<account_name>[a-zA-Z0-0_.-]+)/$', 'show_profile', name='profiles_show_profile'), url(r'^(?P<account_name>[a-zA-Z0-0_.-]+)/friends/$', 'show_friends', name='profiles_show_blog'), url(r'^(?P<account_name>[a-zA-Z0-0_.-]+)/blog/$', 'show_blog', name='profiles_show_blog'), ) My first problem is