pytask/urls.py
author Nishanth Amuluru <nishanth@fossee.in>
Sat, 08 Jan 2011 13:59:59 +0530
changeset 74 a8fbe291385c
parent 69 c6bca38c1cbf
child 76 f920dd4599df
permissions -rwxr-xr-x
Created a form for creating profile

from django.conf.urls.defaults import *

from registration.views import register
from registration.backends.default import DefaultBackend
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)),

    (r'^static/(?P<path>.*)$', 'django.views.static.serve',
            {'document_root': './pytask/static/'}),

    url(r'^accounts/register/$', register,
        {'form_class': CustomRegistrationForm,   
         'backend': 'registration.backends.default.DefaultBackend'},
        name='registration_register'),

    (r'^accounts/', include('registration.urls')),
    (r'^profile/', include('pytask.profile.urls')),
)