pytask/urls.py
author anoop
Fri, 29 Jan 2010 22:18:29 +0530
changeset 8 825a497d95b0
parent 6 94136f9a48bc
child 10 c2001db39937
permissions -rw-r--r--
corrected views/user/register method

from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

from pytask.taskapp.views.users import redirect_to_homepage, homepage, register, user_login, user_logout
from pytask.taskapp.views.tasks import browse_tasks, view_task

urlpatterns = patterns('',
    # Example:
    # (r'^pytask/', include('pytask.foo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
    
    (r'^$', homepage),
    (r'^task/browse/$', browse_tasks),
    (r'^task/view/tid=(\d+)', view_task),
    
    (r'^admin/', include(admin.site.urls)),
    
    (r'^accounts/register/$',register),
    (r'^accounts/login/$',user_login),
    (r'^accounts/logout/$',user_logout)
)