pytask/urls.py
author anoop
Mon, 01 Feb 2010 17:30:30 +0530
changeset 22 943a35c14cf7
parent 20 c5a282b84eb8
permissions -rw-r--r--
added browse users functionality, added user/browse.html, fixed view my profile template.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
b7bbb12e3b8e created a django project called pytask.
nishanth
parents:
diff changeset
     1
from django.conf.urls.defaults import *
b7bbb12e3b8e created a django project called pytask.
nishanth
parents:
diff changeset
     2
b7bbb12e3b8e created a django project called pytask.
nishanth
parents:
diff changeset
     3
# Uncomment the next two lines to enable the admin:
b7bbb12e3b8e created a django project called pytask.
nishanth
parents:
diff changeset
     4
from django.contrib import admin
b7bbb12e3b8e created a django project called pytask.
nishanth
parents:
diff changeset
     5
admin.autodiscover()
b7bbb12e3b8e created a django project called pytask.
nishanth
parents:
diff changeset
     6
22
943a35c14cf7 added browse users functionality, added user/browse.html, fixed view my profile template.
anoop
parents: 20
diff changeset
     7
from pytask.taskapp.views.user import homepage, register, user_login, user_logout, view_my_profile, edit_my_profile, browse_users
18
293692eb8f06 added the functionality to assign a task to one of the claimed users.
nishanth
parents: 15
diff changeset
     8
from pytask.taskapp.views.task import browse_tasks, view_task, create_task, add_mentor, add_tasks, claim_task, assign_task
5
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents: 2
diff changeset
     9
1
b7bbb12e3b8e created a django project called pytask.
nishanth
parents:
diff changeset
    10
urlpatterns = patterns('',
b7bbb12e3b8e created a django project called pytask.
nishanth
parents:
diff changeset
    11
    # Example:
b7bbb12e3b8e created a django project called pytask.
nishanth
parents:
diff changeset
    12
    # (r'^pytask/', include('pytask.foo.urls')),
b7bbb12e3b8e created a django project called pytask.
nishanth
parents:
diff changeset
    13
b7bbb12e3b8e created a django project called pytask.
nishanth
parents:
diff changeset
    14
    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
b7bbb12e3b8e created a django project called pytask.
nishanth
parents:
diff changeset
    15
    # to INSTALLED_APPS to enable admin documentation:
b7bbb12e3b8e created a django project called pytask.
nishanth
parents:
diff changeset
    16
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
b7bbb12e3b8e created a django project called pytask.
nishanth
parents:
diff changeset
    17
    
5
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents: 2
diff changeset
    18
    (r'^$', homepage),
16
d57e63325759 added view profile and edit profile functionalities.
anoop
parents: 15
diff changeset
    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
c6038cbf8a39 addded link to view claims in 'view task' page .
nishanth
parents: 14
diff changeset
    25
    (r'^task/claim/tid=(\d+)', claim_task),
18
293692eb8f06 added the functionality to assign a task to one of the claimed users.
nishanth
parents: 15
diff changeset
    26
    (r'^task/assign/tid=(\d+)', assign_task),
5
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents: 2
diff changeset
    27
    
1
b7bbb12e3b8e created a django project called pytask.
nishanth
parents:
diff changeset
    28
    (r'^admin/', include(admin.site.urls)),
6
94136f9a48bc added login, logout, and register.
anoop
parents: 5
diff changeset
    29
    
94136f9a48bc added login, logout, and register.
anoop
parents: 5
diff changeset
    30
    (r'^accounts/register/$',register),
94136f9a48bc added login, logout, and register.
anoop
parents: 5
diff changeset
    31
    (r'^accounts/login/$',user_login),
16
d57e63325759 added view profile and edit profile functionalities.
anoop
parents: 15
diff changeset
    32
    (r'^accounts/logout/$',user_logout),
d57e63325759 added view profile and edit profile functionalities.
anoop
parents: 15
diff changeset
    33
    
d57e63325759 added view profile and edit profile functionalities.
anoop
parents: 15
diff changeset
    34
    (r'^user/view/uid=(\d+)$', view_my_profile),
20
c5a282b84eb8 resolved merging conflicts in urls.py
nishanth
parents: 19
diff changeset
    35
    (r'^user/edit/?$', edit_my_profile),
22
943a35c14cf7 added browse users functionality, added user/browse.html, fixed view my profile template.
anoop
parents: 20
diff changeset
    36
    (r'^user/browse/?$',browse_users),
1
b7bbb12e3b8e created a django project called pytask.
nishanth
parents:
diff changeset
    37
)