pytask/profile/urls.py
changeset 401 bb034741c351
parent 378 8fcde6f8f750
child 407 fe51e9080a17
--- a/pytask/profile/urls.py	Fri Jan 14 22:53:18 2011 +0530
+++ b/pytask/profile/urls.py	Fri Jan 14 05:29:44 2011 +0530
@@ -1,19 +1,13 @@
-from django.conf.urls.defaults import *
+from django.conf.urls.defaults import patterns
+from django.conf.urls.defaults import url
 
-from pytask.profile.views import view_profile, edit_profile,\
-                                 browse_notifications, view_notification,\
-                                 delete_notification, unread_notification, \
-                                 view_user
-
-urlpatterns = patterns('',
 
-            (r'^view/$', view_profile),
-            (r'^edit/$', edit_profile),
-            (r'^notf/browse/$', browse_notifications),
-            (r'^notf/view/nid=(\w+)$', view_notification),
-            (r'^notf/del/nid=(\w+)$', delete_notification),
-            (r'^notf/unr/nid=(\w+)$', unread_notification),
-
-            (r'^user/view/uid=(\w+)$', view_user),
+urlpatterns = patterns('pytask.profile.views',
+            url(r'^view/$', 'view_profile'),
+            url(r'^edit/$', 'edit_profile'),
+            url(r'^notf/browse/$', 'browse_notifications'),
+            url(r'^notf/view/nid=(\w+)$', 'view_notification'),
+            url(r'^notf/del/nid=(\w+)$', 'delete_notification'),
+            url(r'^notf/unr/nid=(\w+)$', 'unread_notification'),
+            url(r'^user/view/uid=(\w+)$', 'view_user'),
 )
-