urls.py
author Nishanth Amuluru <nishanth@fossee.in>
Fri, 07 Jan 2011 12:21:43 +0530
changeset 275 c701e68f8d35
parent 272 ee00b42e802f
child 292 b3f4888a78a1
permissions -rwxr-xr-x
fixed a typo and browse notifications works fine

from django.conf.urls.defaults import *

from registration.views import register
from pytask.profile.forms import CustomRegistrationForm

from django.shortcuts import redirect

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

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

    # Uncomment the admin/doc line below to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    (r'^admin/', include(admin.site.urls)),

    url(r'^accounts/register/$', register,
        {'form_class': CustomRegistrationForm},
        name='registration_register'),
    (r'^accounts/', include('registration.urls')),
    (r'^profile/', include('pytask.profile.urls')),
)