pytask/profile/urls.py
author Madhusudan.C.S <madhusudancs@gmail.com>
Sat, 15 Jan 2011 21:22:35 +0530
changeset 418 df241055a1a7
parent 410 f11529f0e482
child 453 4b4e299add3b
permissions -rw-r--r--
Add a new view method for specific users profile view.

from django.conf.urls.defaults import patterns
from django.conf.urls.defaults import url


urlpatterns = patterns('pytask.profile.views',
  url(r'^view/$', 'view_profile', name='view_profile'),
  url(r'^view/(?P<user_id>\d+)$', 'view_user_profile',
    name='view_user_profile'),
  url(r'^edit/$', 'edit_profile', name='edit_profile'),
  url(r'^notification/browse/$', 'browse_notifications',
      name='browse_notifications'),
  url(r'^notification/view/(?P<notification_id>\d+)$',
      'view_notification', name='view_notification'),
  url(r'^notification/delete/(?P<notification_id>\d+)$',
      'delete_notification', name='delete_notification'),
  url(r'^notification/unread/(?P<notification_id>\d+)$',
      'unread_notification', name='unread_notification'),
  url(r'^user/view/(?P<user_id>\d+)$', 'view_user',
      name='view_user'),
)