urls.py
changeset 23 f33084ea1361
parent 22 36d3173ab7f9
child 25 c0e4fc8b8b5b
--- a/urls.py	Thu Feb 04 23:10:30 2010 +0530
+++ b/urls.py	Thu Feb 04 23:12:07 2010 +0530
@@ -4,7 +4,7 @@
 from django.contrib import admin
 admin.autodiscover()
 
-from pytask.taskapp.views.user import homepage, register, user_login, user_logout
+from pytask.taskapp.views.user import homepage, register, user_login, user_logout, view_my_profile, edit_my_profile
 from pytask.taskapp.views.task import browse_tasks, view_task, create_task, add_mentor, add_tasks, claim_task
 
 urlpatterns = patterns('',
@@ -16,6 +16,7 @@
     # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
     
     (r'^$', homepage),
+    
     (r'^task/browse/$', browse_tasks),
     (r'^task/view/tid=(\d+)$', view_task),
     (r'^task/create/$', create_task),
@@ -27,5 +28,9 @@
     
     (r'^accounts/register/$',register),
     (r'^accounts/login/$',user_login),
-    (r'^accounts/logout/$',user_logout)
+    (r'^accounts/logout/$',user_logout),
+    
+    (r'^user/view/uid=(\d+)$', view_my_profile),
+    (r'^user/edit/?$',edit_my_profile),
+
 )