urls.py
author Nishanth Amuluru <nishanth@fossee.in>
Fri, 07 Jan 2011 11:42:34 +0530
changeset 31 dde894b36370
parent 28 4dfcc826b241
child 34 ee00b42e802f
permissions -rwxr-xr-x
created view for editing profile and created corresponding template
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
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
21
3efb40900b87 added the url for creating a login
Nishanth Amuluru <nishanth@fossee.in>
parents: 18
diff changeset
     3
from registration.views import register
3efb40900b87 added the url for creating a login
Nishanth Amuluru <nishanth@fossee.in>
parents: 18
diff changeset
     4
from pytask.profile.forms import CustomRegistrationForm
3efb40900b87 added the url for creating a login
Nishanth Amuluru <nishanth@fossee.in>
parents: 18
diff changeset
     5
27
1ce8241a9628 Removed the site url since it is the wrong way to use
Nishanth Amuluru <nishanth@fossee.in>
parents: 26
diff changeset
     6
from django.shortcuts import redirect
1ce8241a9628 Removed the site url since it is the wrong way to use
Nishanth Amuluru <nishanth@fossee.in>
parents: 26
diff changeset
     7
0
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     8
# Uncomment the next two lines to enable the admin:
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     9
# from django.contrib import admin
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    10
# admin.autodiscover()
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    11
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    12
urlpatterns = patterns('',
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    13
    # Example:
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    14
    # (r'^pytask/', include('pytask.foo.urls')),
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    15
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    16
    # Uncomment the admin/doc line below to enable admin documentation:
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    17
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    18
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    19
    # Uncomment the next line to enable the admin:
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    20
    # (r'^admin/', include(admin.site.urls)),
21
3efb40900b87 added the url for creating a login
Nishanth Amuluru <nishanth@fossee.in>
parents: 18
diff changeset
    21
3efb40900b87 added the url for creating a login
Nishanth Amuluru <nishanth@fossee.in>
parents: 18
diff changeset
    22
    url(r'^accounts/register/$', register,
3efb40900b87 added the url for creating a login
Nishanth Amuluru <nishanth@fossee.in>
parents: 18
diff changeset
    23
        {'form_class': CustomRegistrationForm},
3efb40900b87 added the url for creating a login
Nishanth Amuluru <nishanth@fossee.in>
parents: 18
diff changeset
    24
        name='registration_register'),
28
4dfcc826b241 Created a view for viewing profile
Nishanth Amuluru <nishanth@fossee.in>
parents: 27
diff changeset
    25
    (r'^accounts/profile/', include('pytask.profile.urls')),
26
8c2376baee94 Added csrf_token and included the urls
Nishanth Amuluru <nishanth@fossee.in>
parents: 21
diff changeset
    26
    (r'^accounts/', include('registration.urls')),
0
8d8a3f5af24f Initial commit
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    27
)