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 |
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 |
8 from pytask.taskapp.views.task import browse_tasks, view_task, create_task, add_mentor, add_tasks, claim_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 |
19 (r'^task/browse/$', browse_tasks), |
19 (r'^task/browse/$', browse_tasks), |
20 (r'^task/view/tid=(\d+)$', view_task), |
20 (r'^task/view/tid=(\d+)$', view_task), |
21 (r'^task/create/$', create_task), |
21 (r'^task/create/$', create_task), |
22 (r'^task/addmentor/tid=(\d+)', add_mentor), |
22 (r'^task/addmentor/tid=(\d+)', add_mentor), |
23 (r'^task/addtasks/tid=(\d+)', add_tasks), |
23 (r'^task/addtasks/tid=(\d+)', add_tasks), |
|
24 (r'^task/claim/tid=(\d+)', claim_task), |
24 |
25 |
25 (r'^admin/', include(admin.site.urls)), |
26 (r'^admin/', include(admin.site.urls)), |
26 |
27 |
27 (r'^accounts/register/$',register), |
28 (r'^accounts/register/$',register), |
28 (r'^accounts/login/$',user_login), |
29 (r'^accounts/login/$',user_login), |