urls.py
author nishanth
Fri, 05 Feb 2010 15:02:55 +0530
changeset 30 055dc4c1db57
parent 28 e137b605b888
child 31 988d4994578f
permissions -rw-r--r--
fixed a bug in createSuUser method in events/user.py .
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
     1
from django.conf.urls.defaults import *
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
     2
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
     3
# Uncomment the next two lines to enable the admin:
1
7818992cbf83 Created taskapp and added data to models.py and edited settings.py to make it usable in admin interface.
Nishanth <nishanth@fossee.in>
parents: 0
diff changeset
     4
from django.contrib import admin
7818992cbf83 Created taskapp and added data to models.py and edited settings.py to make it usable in admin interface.
Nishanth <nishanth@fossee.in>
parents: 0
diff changeset
     5
admin.autodiscover()
0
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
     6
28
e137b605b888 added browse users functionality, added user/browse.html, fixed view my profile template.
anoop
parents: 26
diff changeset
     7
from pytask.taskapp.views.user import homepage, register, user_login, user_logout, view_my_profile, edit_my_profile, browse_users
25
c0e4fc8b8b5b added the functionality to assign a task to one of the claimed users.
nishanth
parents: 23
diff changeset
     8
from pytask.taskapp.views.task import browse_tasks, view_task, create_task, add_mentor, add_tasks, claim_task, assign_task
12
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents: 10
diff changeset
     9
0
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    10
urlpatterns = patterns('',
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    11
    # Example:
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    12
    # (r'^pytask/', include('pytask.foo.urls')),
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    13
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    14
    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    15
    # to INSTALLED_APPS to enable admin documentation:
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    16
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
10
bf0cbea1bd12 removed views.py and made it a package. added auth_profile to settings.py
nishanth
parents: 1
diff changeset
    17
    
12
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents: 10
diff changeset
    18
    (r'^$', homepage),
23
f33084ea1361 added view profile and edit profile functionalities.
anoop
parents: 22
diff changeset
    19
    
12
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents: 10
diff changeset
    20
    (r'^task/browse/$', browse_tasks),
18
a39549bd5b08 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: 17
diff changeset
    21
    (r'^task/view/tid=(\d+)$', view_task),
a39549bd5b08 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: 17
diff changeset
    22
    (r'^task/create/$', create_task),
21
c28774fe7ffd implemented "add another mentor" functionality to a task.
nishanth
parents: 18
diff changeset
    23
    (r'^task/addmentor/tid=(\d+)', add_mentor),
c28774fe7ffd implemented "add another mentor" functionality to a task.
nishanth
parents: 18
diff changeset
    24
    (r'^task/addtasks/tid=(\d+)', add_tasks),
22
36d3173ab7f9 addded link to view claims in 'view task' page .
nishanth
parents: 21
diff changeset
    25
    (r'^task/claim/tid=(\d+)', claim_task),
25
c0e4fc8b8b5b added the functionality to assign a task to one of the claimed users.
nishanth
parents: 23
diff changeset
    26
    (r'^task/assign/tid=(\d+)', assign_task),
12
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents: 10
diff changeset
    27
    
10
bf0cbea1bd12 removed views.py and made it a package. added auth_profile to settings.py
nishanth
parents: 1
diff changeset
    28
    (r'^admin/', include(admin.site.urls)),
13
0fb64b24a1c9 added views, templates for register, login, logout user.
anoop
parents: 12
diff changeset
    29
    
0fb64b24a1c9 added views, templates for register, login, logout user.
anoop
parents: 12
diff changeset
    30
    (r'^accounts/register/$',register),
0fb64b24a1c9 added views, templates for register, login, logout user.
anoop
parents: 12
diff changeset
    31
    (r'^accounts/login/$',user_login),
23
f33084ea1361 added view profile and edit profile functionalities.
anoop
parents: 22
diff changeset
    32
    (r'^accounts/logout/$',user_logout),
f33084ea1361 added view profile and edit profile functionalities.
anoop
parents: 22
diff changeset
    33
    
f33084ea1361 added view profile and edit profile functionalities.
anoop
parents: 22
diff changeset
    34
    (r'^user/view/uid=(\d+)$', view_my_profile),
26
7c98e8968691 resolved merging conflicts in urls.py .
nishanth
parents: 25
diff changeset
    35
    (r'^user/edit/?$', edit_my_profile),
28
e137b605b888 added browse users functionality, added user/browse.html, fixed view my profile template.
anoop
parents: 26
diff changeset
    36
    (r'^user/browse/?$',browse_users),
0
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    37
)