urls.py
changeset 25 c0e4fc8b8b5b
parent 23 f33084ea1361
child 26 7c98e8968691
equal deleted inserted replaced
24:fcae44e94845 25:c0e4fc8b8b5b
     2 
     2 
     3 # Uncomment the next two lines to enable the admin:
     3 # Uncomment the next two lines to enable the admin:
     4 from django.contrib import admin
     4 from django.contrib import admin
     5 admin.autodiscover()
     5 admin.autodiscover()
     6 
     6 
     7 from pytask.taskapp.views.user import homepage, register, user_login, user_logout, view_my_profile, edit_my_profile
     7 from pytask.taskapp.views.user import homepage, register, user_login, user_logout
     8 from pytask.taskapp.views.task import browse_tasks, view_task, create_task, add_mentor, add_tasks, claim_task
     8 from pytask.taskapp.views.task import browse_tasks, view_task, create_task, add_mentor, add_tasks, claim_task, assign_task
     9 
     9 
    10 urlpatterns = patterns('',
    10 urlpatterns = patterns('',
    11     # Example:
    11     # Example:
    12     # (r'^pytask/', include('pytask.foo.urls')),
    12     # (r'^pytask/', include('pytask.foo.urls')),
    13 
    13 
    21     (r'^task/view/tid=(\d+)$', view_task),
    21     (r'^task/view/tid=(\d+)$', view_task),
    22     (r'^task/create/$', create_task),
    22     (r'^task/create/$', create_task),
    23     (r'^task/addmentor/tid=(\d+)', add_mentor),
    23     (r'^task/addmentor/tid=(\d+)', add_mentor),
    24     (r'^task/addtasks/tid=(\d+)', add_tasks),
    24     (r'^task/addtasks/tid=(\d+)', add_tasks),
    25     (r'^task/claim/tid=(\d+)', claim_task),
    25     (r'^task/claim/tid=(\d+)', claim_task),
       
    26     (r'^task/assign/tid=(\d+)', assign_task),
    26     
    27     
    27     (r'^admin/', include(admin.site.urls)),
    28     (r'^admin/', include(admin.site.urls)),
    28     
    29     
    29     (r'^accounts/register/$',register),
    30     (r'^accounts/register/$',register),
    30     (r'^accounts/login/$',user_login),
    31     (r'^accounts/login/$',user_login),