urls.py
author Nishanth Amuluru <nishanth@fossee.in>
Fri, 07 Jan 2011 10:30:26 +0530
changeset 261 d736049a518f
parent 259 3efb40900b87
child 264 8c2376baee94
permissions -rwxr-xr-x
changed the url in email activation
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
238
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     1
from django.conf.urls.defaults import *
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     2
259
3efb40900b87 added the url for creating a login
Nishanth Amuluru <nishanth@fossee.in>
parents: 256
diff changeset
     3
from registration.views import register
3efb40900b87 added the url for creating a login
Nishanth Amuluru <nishanth@fossee.in>
parents: 256
diff changeset
     4
from pytask.profile.forms import CustomRegistrationForm
3efb40900b87 added the url for creating a login
Nishanth Amuluru <nishanth@fossee.in>
parents: 256
diff changeset
     5
238
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     6
# Uncomment the next two lines to enable the admin:
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     7
# from django.contrib import admin
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     8
# admin.autodiscover()
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     9
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    10
urlpatterns = patterns('',
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    11
    # Example:
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    12
    # (r'^pytask/', include('pytask.foo.urls')),
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    13
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    14
    # Uncomment the admin/doc line below to enable admin documentation:
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    15
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    16
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    17
    # Uncomment the next line to enable the admin:
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    18
    # (r'^admin/', include(admin.site.urls)),
256
718b7b0309f1 added a url for the site
Nishanth Amuluru <nishanth@fossee.in>
parents: 238
diff changeset
    19
    url(r'localhost:8000', None, name="site"),
259
3efb40900b87 added the url for creating a login
Nishanth Amuluru <nishanth@fossee.in>
parents: 256
diff changeset
    20
3efb40900b87 added the url for creating a login
Nishanth Amuluru <nishanth@fossee.in>
parents: 256
diff changeset
    21
    url(r'^accounts/register/$', register,
3efb40900b87 added the url for creating a login
Nishanth Amuluru <nishanth@fossee.in>
parents: 256
diff changeset
    22
        {'form_class': CustomRegistrationForm},
3efb40900b87 added the url for creating a login
Nishanth Amuluru <nishanth@fossee.in>
parents: 256
diff changeset
    23
        name='registration_register'),
238
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    24
)