pytask/urls.py
author nishanth
Fri, 29 Jan 2010 23:34:19 +0530
changeset 10 c2001db39937
parent 6 94136f9a48bc
child 11 d28fcc644fbb
permissions -rw-r--r--
renamed users.py to user.py and tasks to task in views folder and updated urls.py accordingly .
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
10
c2001db39937 renamed users.py to user.py and tasks to task in views folder and updated urls.py accordingly .
nishanth
parents: 6
diff changeset
     7
from pytask.taskapp.views.user import redirect_to_homepage, homepage, register, user_login, user_logout
c2001db39937 renamed users.py to user.py and tasks to task in views folder and updated urls.py accordingly .
nishanth
parents: 6
diff changeset
     8
from pytask.taskapp.views.task import browse_tasks, view_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),
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents: 2
diff changeset
    19
    (r'^task/browse/$', browse_tasks),
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents: 2
diff changeset
    20
    (r'^task/view/tid=(\d+)', view_task),
aea7e764c033 created views and templates for homepage,browse_task and added actions.
nishanth
parents: 2
diff changeset
    21
    
1
b7bbb12e3b8e created a django project called pytask.
nishanth
parents:
diff changeset
    22
    (r'^admin/', include(admin.site.urls)),
6
94136f9a48bc added login, logout, and register.
anoop
parents: 5
diff changeset
    23
    
94136f9a48bc added login, logout, and register.
anoop
parents: 5
diff changeset
    24
    (r'^accounts/register/$',register),
94136f9a48bc added login, logout, and register.
anoop
parents: 5
diff changeset
    25
    (r'^accounts/login/$',user_login),
94136f9a48bc added login, logout, and register.
anoop
parents: 5
diff changeset
    26
    (r'^accounts/logout/$',user_logout)
1
b7bbb12e3b8e created a django project called pytask.
nishanth
parents:
diff changeset
    27
)