from django.conf.urls import patterns, url urlpatterns = patterns('misago.profiles.views', url(r'^$', 'list', name="users"), url(r'^(?P\w+)-(?P\d+)/$', 'profile', name="user"), url(r'^(?P\w+)-(?P\d+)/threads/$', 'profile', name="user_threads", kwargs={'tab': 'threads'}), url(r'^(?P\w+)-(?P\d+)/following/$', 'profile', name="user_following", kwargs={'tab': 'following'}), url(r'^(?P\w+)-(?P\d+)/followiers/$', 'profile', name="user_followers", kwargs={'tab': 'followers'}), url(r'^(?P\w+)-(?P\d+)/details/$', 'profile', name="user_details", kwargs={'tab': 'details'}), url(r'^(?P(\w|-)+)/$', 'list', name="users"), )