1 from django.conf.urls.defaults import * |
1 from django.conf.urls.defaults import patterns |
|
2 from django.conf.urls.defaults import url |
2 |
3 |
3 from pytask.profile.views import view_profile, edit_profile,\ |
|
4 browse_notifications, view_notification,\ |
|
5 delete_notification, unread_notification, \ |
|
6 view_user |
|
7 |
4 |
8 urlpatterns = patterns('', |
5 urlpatterns = patterns('pytask.profile.views', |
9 |
6 url(r'^view/$', 'view_profile'), |
10 (r'^view/$', view_profile), |
7 url(r'^edit/$', 'edit_profile'), |
11 (r'^edit/$', edit_profile), |
8 url(r'^notf/browse/$', 'browse_notifications'), |
12 (r'^notf/browse/$', browse_notifications), |
9 url(r'^notf/view/nid=(\w+)$', 'view_notification'), |
13 (r'^notf/view/nid=(\w+)$', view_notification), |
10 url(r'^notf/del/nid=(\w+)$', 'delete_notification'), |
14 (r'^notf/del/nid=(\w+)$', delete_notification), |
11 url(r'^notf/unr/nid=(\w+)$', 'unread_notification'), |
15 (r'^notf/unr/nid=(\w+)$', unread_notification), |
12 url(r'^user/view/uid=(\w+)$', 'view_user'), |
16 |
|
17 (r'^user/view/uid=(\w+)$', view_user), |
|
18 ) |
13 ) |
19 |
|