urls.py
author Nishanth Amuluru <nishanth@fossee.in>
Fri, 07 Jan 2011 11:11:53 +0530
changeset 27 1ce8241a9628
parent 26 8c2376baee94
child 28 4dfcc826b241
permissions -rwxr-xr-x
Removed the site url since it is the wrong way to use

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