author | anoop |
Mon, 01 Feb 2010 14:08:18 +0530 | |
changeset 16 | d57e63325759 |
parent 15 | c6038cbf8a39 |
child 19 | 2cff66e3386a |
permissions | -rw-r--r-- |
1 | 1 |
from django.conf.urls.defaults import * |
2 |
||
3 |
# Uncomment the next two lines to enable the admin: |
|
4 |
from django.contrib import admin |
|
5 |
admin.autodiscover() |
|
6 |
||
16 | 7 |
from pytask.taskapp.views.user import homepage, register, user_login, user_logout, view_my_profile, edit_my_profile |
15 | 8 |
from pytask.taskapp.views.task import browse_tasks, view_task, create_task, add_mentor, add_tasks, claim_task |
5
aea7e764c033
created views and templates for homepage,browse_task and added actions.
nishanth
parents:
2
diff
changeset
|
9 |
|
1 | 10 |
urlpatterns = patterns('', |
11 |
# Example: |
|
12 |
# (r'^pytask/', include('pytask.foo.urls')), |
|
13 |
||
14 |
# Uncomment the admin/doc line below and add 'django.contrib.admindocs' |
|
15 |
# to INSTALLED_APPS to enable admin documentation: |
|
16 |
# (r'^admin/doc/', include('django.contrib.admindocs.urls')), |
|
17 |
||
5
aea7e764c033
created views and templates for homepage,browse_task and added actions.
nishanth
parents:
2
diff
changeset
|
18 |
(r'^$', homepage), |
16 | 19 |
|
5
aea7e764c033
created views and templates for homepage,browse_task and added actions.
nishanth
parents:
2
diff
changeset
|
20 |
(r'^task/browse/$', browse_tasks), |
11
d28fcc644fbb
implemented create task view which needed task.py in events. added a method show_msg to views/user.py and used it in logoff view.
nishanth
parents:
10
diff
changeset
|
21 |
(r'^task/view/tid=(\d+)$', view_task), |
d28fcc644fbb
implemented create task view which needed task.py in events. added a method show_msg to views/user.py and used it in logoff view.
nishanth
parents:
10
diff
changeset
|
22 |
(r'^task/create/$', create_task), |
14
f2623fb8041a
implemented add another mentor functionality to a task.
nishanth
parents:
11
diff
changeset
|
23 |
(r'^task/addmentor/tid=(\d+)', add_mentor), |
f2623fb8041a
implemented add another mentor functionality to a task.
nishanth
parents:
11
diff
changeset
|
24 |
(r'^task/addtasks/tid=(\d+)', add_tasks), |
15 | 25 |
(r'^task/claim/tid=(\d+)', claim_task), |
5
aea7e764c033
created views and templates for homepage,browse_task and added actions.
nishanth
parents:
2
diff
changeset
|
26 |
|
1 | 27 |
(r'^admin/', include(admin.site.urls)), |
6 | 28 |
|
29 |
(r'^accounts/register/$',register), |
|
30 |
(r'^accounts/login/$',user_login), |
|
16 | 31 |
(r'^accounts/logout/$',user_logout), |
32 |
||
33 |
(r'^user/view/uid=(\d+)$', view_my_profile), |
|
34 |
(r'^user/edit/?$',edit_my_profile), |
|
35 |
||
1 | 36 |
) |