pytask/urls.py
author nishanth
Thu, 28 Jan 2010 19:17:31 +0530
changeset 1 b7bbb12e3b8e
child 2 3db830ff66ee
permissions -rw-r--r--
created a django project called pytask.

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.seed_db import seed_db
from pytask.taskapp import views

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'^$', views.homepage),
    (r'^accounts/logout/?$', views.logout_user),
    (r'^accounts/login/?$', views.login_user),
    (r'^accounts/register/?$', views.register_user),
    #(r'^user/view?uid=(\d+)$', views.view_profile),
    #(r'^user/edit/?$', views.edit_profile),    
    #(r'^user/view/?$', views.browse_users),
    
    (r'^admin/', include(admin.site.urls)),

    (r'^seed_db/?$',seed_db),
)