pytask/urls.py
author nishanth
Fri, 29 Jan 2010 19:27:26 +0530
changeset 5 aea7e764c033
parent 2 3db830ff66ee
child 6 94136f9a48bc
permissions -rw-r--r--
created views and templates for homepage,browse_task and added actions.

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
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)),

)