app/urls.py
changeset 84 1b31d238ba39
parent 83 3f4f7c540b75
child 86 fd34dd071e5e
equal deleted inserted replaced
83:3f4f7c540b75 84:1b31d238ba39
    22 
    22 
    23 
    23 
    24 urlpatterns = patterns(
    24 urlpatterns = patterns(
    25     '',
    25     '',
    26     (r'^$', 'soc.views.site.home.public'),
    26     (r'^$', 'soc.views.site.home.public'),
       
    27 
       
    28     # attempt to send User to their dashboard
       
    29     # (will display soc.views.user.roles.public() if "linkname" is not
       
    30     # current logged-in User)    
       
    31     (r'^user/roles/(?P<linkname>[_0-9a-z]+)$',
       
    32      'soc.views.user.roles.dashboard'),
       
    33 
    27     (r'^user/profile$','soc.views.user.profile'),
    34     (r'^user/profile$','soc.views.user.profile'),
    28     (r'^user/profile/(?P<linkname>[_0-9a-z]+)$','soc.views.user.profile'),
    35     (r'^user/profile/(?P<linkname>[_0-9a-z]+)$','soc.views.user.profile'),
       
    36 
    29     (r'^org/profile/(?P<program>ghop[_0-9a-z]+)/(?P<linkname>[_0-9a-z]+)/$',
    37     (r'^org/profile/(?P<program>ghop[_0-9a-z]+)/(?P<linkname>[_0-9a-z]+)/$',
    30      'soc.views.person.profile.edit',
    38      'soc.views.person.profile.edit',
    31      {'template': 'ghop/person/profile/edit.html'}),
    39      {'template': 'ghop/person/profile/edit.html'}),
    32     (r'^org/profile/(?P<program>[_0-9a-z]+)/(?P<linkname>[_0-9a-z]+)/$',
    40     (r'^org/profile/(?P<program>[_0-9a-z]+)/(?P<linkname>[_0-9a-z]+)/$',
    33      'soc.views.person.profile.edit'),
    41      'soc.views.person.profile.edit'),