urls.py
author anoop
Thu, 04 Feb 2010 22:14:34 +0530
changeset 13 0fb64b24a1c9
parent 12 a93eebabfeb1
child 17 aa45fec40e7e
permissions -rw-r--r--
added views, templates for register, login, logout user.
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
13
0fb64b24a1c9 added views, templates for register, login, logout user.
anoop
parents: 12
diff changeset
     7
from pytask.taskapp.views.users import redirect_to_homepage, homepage, register, user_login, user_logout
12
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents: 10
diff changeset
     8
from pytask.taskapp.views.tasks import browse_tasks, view_task
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents: 10
diff changeset
     9
0
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    10
urlpatterns = patterns('',
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    11
    # Example:
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    12
    # (r'^pytask/', include('pytask.foo.urls')),
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    13
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    14
    # 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
    15
    # to INSTALLED_APPS to enable admin documentation:
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    16
    # (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
    17
    
12
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents: 10
diff changeset
    18
    (r'^$', homepage),
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents: 10
diff changeset
    19
    (r'^task/browse/$', browse_tasks),
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents: 10
diff changeset
    20
    (r'^task/view/tid=(\d+)', view_task),
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents: 10
diff changeset
    21
    
10
bf0cbea1bd12 removed views.py and made it a package. added auth_profile to settings.py
nishanth
parents: 1
diff changeset
    22
    (r'^admin/', include(admin.site.urls)),
13
0fb64b24a1c9 added views, templates for register, login, logout user.
anoop
parents: 12
diff changeset
    23
    
0fb64b24a1c9 added views, templates for register, login, logout user.
anoop
parents: 12
diff changeset
    24
    (r'^accounts/register/$',register),
0fb64b24a1c9 added views, templates for register, login, logout user.
anoop
parents: 12
diff changeset
    25
    (r'^accounts/login/$',user_login),
0fb64b24a1c9 added views, templates for register, login, logout user.
anoop
parents: 12
diff changeset
    26
    (r'^accounts/logout/$',user_logout)
0
a87d642f1ba5 Initial commit that has bare minimum django project files.
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    27
)