pytask/profile/urls.py
changeset 407 fe51e9080a17
parent 401 bb034741c351
child 410 f11529f0e482
equal deleted inserted replaced
406:6cd8eda4d8df 407:fe51e9080a17
     1 from django.conf.urls.defaults import patterns
     1 from django.conf.urls.defaults import patterns
     2 from django.conf.urls.defaults import url
     2 from django.conf.urls.defaults import url
     3 
     3 
     4 
     4 
     5 urlpatterns = patterns('pytask.profile.views',
     5 urlpatterns = patterns('pytask.profile.views',
     6             url(r'^view/$', 'view_profile'),
     6   url(r'^view/$', 'view_profile', name='view_profile'),
     7             url(r'^edit/$', 'edit_profile'),
     7   url(r'^edit/$', 'edit_profile', name='edit_profile'),
     8             url(r'^notf/browse/$', 'browse_notifications'),
     8   url(r'^notf/browse/$', 'browse_notifications',
     9             url(r'^notf/view/nid=(\w+)$', 'view_notification'),
     9       name='edit_profile'),
    10             url(r'^notf/del/nid=(\w+)$', 'delete_notification'),
    10   url(r'^notf/view/(?P<notification_id>\d+)$', 'view_notification',
    11             url(r'^notf/unr/nid=(\w+)$', 'unread_notification'),
    11       name='view_notification'),
    12             url(r'^user/view/uid=(\w+)$', 'view_user'),
    12   url(r'^notf/del/(?P<notification_id>\d+)$', 'delete_notification',
       
    13       name='delete_notification'),
       
    14   url(r'^notf/unr/(?P<notification_id>\d+)$', 'unread_notification',
       
    15       name='unread_notification'),
       
    16   url(r'^user/view/(?P<user_id>\d+)$', 'view_user',
       
    17       name='view_user'),
    13 )
    18 )