urls.py
author anoop
Wed, 17 Feb 2010 17:46:16 +0530
changeset 40 43853e376bb8
parent 38 7910ff503036
child 42 9b5b8c997598
permissions -rw-r--r--
deleted unwanted code to start using django-registration.
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
36
0f10deac0a9b made urls.py look better and added an empty method edit_task to taskViews .
nishanth
parents: 35
diff changeset
     7
from pytask.taskapp.views import user as userViews
0f10deac0a9b made urls.py look better and added an empty method edit_task to taskViews .
nishanth
parents: 35
diff changeset
     8
from pytask.taskapp.views import task as taskViews
12
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents: 10
diff changeset
     9
31
988d4994578f modified createUser method in events/user.py .
nishanth
parents: 28
diff changeset
    10
0
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    11
urlpatterns = patterns('',
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    12
    # Example:
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    13
    # (r'^pytask/', include('pytask.foo.urls')),
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    14
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    15
    # 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
    16
    # to INSTALLED_APPS to enable admin documentation:
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    17
    # (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
    18
    
36
0f10deac0a9b made urls.py look better and added an empty method edit_task to taskViews .
nishanth
parents: 35
diff changeset
    19
    (r'^$', userViews.homepage),
23
f33084ea1361 added view profile and edit profile functionalities.
anoop
parents: 22
diff changeset
    20
    
36
0f10deac0a9b made urls.py look better and added an empty method edit_task to taskViews .
nishanth
parents: 35
diff changeset
    21
    (r'^task/browse/$', taskViews.browse_tasks),
0f10deac0a9b made urls.py look better and added an empty method edit_task to taskViews .
nishanth
parents: 35
diff changeset
    22
    (r'^task/view/tid=(\d+)$', taskViews.view_task),
0f10deac0a9b made urls.py look better and added an empty method edit_task to taskViews .
nishanth
parents: 35
diff changeset
    23
    (r'^task/create/$', taskViews.create_task),
0f10deac0a9b made urls.py look better and added an empty method edit_task to taskViews .
nishanth
parents: 35
diff changeset
    24
    (r'^task/addmentor/tid=(\d+)', taskViews.add_mentor),
0f10deac0a9b made urls.py look better and added an empty method edit_task to taskViews .
nishanth
parents: 35
diff changeset
    25
    #(r'^task/addtasks/tid=(\d+)', taskViews.add_tasks),
0f10deac0a9b made urls.py look better and added an empty method edit_task to taskViews .
nishanth
parents: 35
diff changeset
    26
    (r'^task/edit/tid=(\d+)', taskViews.edit_task),
0f10deac0a9b made urls.py look better and added an empty method edit_task to taskViews .
nishanth
parents: 35
diff changeset
    27
    (r'^task/claim/tid=(\d+)', taskViews.claim_task),
0f10deac0a9b made urls.py look better and added an empty method edit_task to taskViews .
nishanth
parents: 35
diff changeset
    28
    (r'^task/assign/tid=(\d+)', taskViews.assign_task),
12
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents: 10
diff changeset
    29
    
10
bf0cbea1bd12 removed views.py and made it a package. added auth_profile to settings.py
nishanth
parents: 1
diff changeset
    30
    (r'^admin/', include(admin.site.urls)),
13
0fb64b24a1c9 added views, templates for register, login, logout user.
anoop
parents: 12
diff changeset
    31
    
36
0f10deac0a9b made urls.py look better and added an empty method edit_task to taskViews .
nishanth
parents: 35
diff changeset
    32
    (r'^user/view/uid=(\d+)$', userViews.view_my_profile),
0f10deac0a9b made urls.py look better and added an empty method edit_task to taskViews .
nishanth
parents: 35
diff changeset
    33
    (r'^user/edit/?$', userViews.edit_my_profile),
0f10deac0a9b made urls.py look better and added an empty method edit_task to taskViews .
nishanth
parents: 35
diff changeset
    34
    (r'^user/browse/?$', userViews.browse_users),
31
988d4994578f modified createUser method in events/user.py .
nishanth
parents: 28
diff changeset
    35
    
0
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    36
)