urls.py
author Madhusudan.C.S <madhusudancs@gmail.com>
Fri, 14 Jan 2011 00:57:39 +0530
changeset 235 e338eaeccad7
parent 221 a3de0d3c60a3
permissions -rw-r--r--
Added tag deprecated for changeset b4a3ec34c061
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
218
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
     1
from django.conf.urls.defaults import *
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
     2
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
     3
# Uncomment the next two lines to enable the admin:
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
     4
from django.contrib import admin
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
     5
admin.autodiscover()
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
     6
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
     7
from pytask.taskapp.views import user as userViews
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
     8
from pytask.taskapp.views import task as taskViews
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
     9
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    10
from pytask.taskapp.forms.user import RegistrationFormCustom
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    11
from registration.views import register
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    12
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    13
urlpatterns = patterns('',
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    14
    # Example:
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    15
    # (r'^pytask/', include('pytask.foo.urls')),
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    16
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    17
    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    18
    # to INSTALLED_APPS to enable admin documentation:
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    19
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    20
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    21
    (r'^images/(?P<path>.*)$', 'django.views.static.serve',
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    22
            {'document_root': './images/'}),
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    23
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    24
    (r'^$', userViews.homepage),
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    25
    
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    26
    (r'^task/browse/$', taskViews.browse_tasks),
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    27
    (r'^task/view/tid=(\w+)$', taskViews.view_task),
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    28
    (r'^task/create/$', taskViews.create_task),
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    29
    (r'^task/publish/tid=(\w+)/$', taskViews.publish_task),
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    30
    (r'^task/addreviewer/tid=(\w+)$', taskViews.add_reviewer),
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    31
    (r'^task/edit/tid=(\w+)$', taskViews.edit_task),
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    32
    (r'^task/claim/tid=(\w+)$', taskViews.claim_task),
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    33
    (r'^task/assign/tid=(\w+)$', taskViews.assign_task),
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    34
    (r'^task/remuser/tid=(\w+)$', taskViews.rem_user),
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    35
    (r'^task/addtask/tid=(\w+)$', taskViews.add_tasks),
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    36
    (r'^task/remtask/tid=(\w+)$', taskViews.remove_task),
219
f04a1ec7a07f Replaced the word credit with pynt
Nishanth Amuluru <nishanth@fossee.in>
parents: 218
diff changeset
    37
    (r'^task/assignpynts/tid=(\w+)$', taskViews.assign_pynts),
218
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    38
    (r'^task/complete/tid=(\w+)$', taskViews.complete_task),
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    39
    (r'^task/close/tid=(\w+)$', taskViews.close_task),
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    40
    (r'^task/delete/tid=(\w+)$', taskViews.delete_task),
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    41
    
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    42
    (r'^admin/', include(admin.site.urls)),
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    43
    
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    44
    url(r'^accounts/register/$',register,{'form_class' : RegistrationFormCustom},name='registration_register'),
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    45
    (r'^accounts/', include('registration.urls')),
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    46
    (r'^accounts/profile/$', userViews.view_my_profile),
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    47
    
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    48
    (r'^user/view/uid=(\d+)$', userViews.view_my_profile),
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    49
    (r'^user/edit/?$', userViews.edit_my_profile),
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    50
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    51
    (r'^user/requests/$', userViews.browse_requests),
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    52
    (r'^user/requests/rid=(\d+)/$', userViews.view_request),
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    53
    (r'^user/requests/rid=(\d+)/(\w+)/$', userViews.process_request),
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    54
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    55
    (r'^user/notifications/$', userViews.browse_notifications),
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    56
    (r'^user/notifications/nid=(\d+)/$', userViews.view_notification),
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    57
    (r'^user/notifications/nid=(\d+)/(\w+)/$', userViews.edit_notification),
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    58
    (r'^user/make/(\w+)/$', userViews.change_rights),
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    59
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    60
    (r'^about/(\w+)/$', userViews.learn_more),
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    61
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    62
    (r'^textbook/$', taskViews.show_textbooks),
220
807e4b701a20 added a submit_report link for each task
Nishanth Amuluru <nishanth@fossee.in>
parents: 219
diff changeset
    63
    (r'^task/report/tid=(\w+)/$', taskViews.upload_work),
218
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    64
    
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 215
diff changeset
    65
)