urls.py
changeset 272 ee00b42e802f
parent 266 4dfcc826b241
child 275 c701e68f8d35
equal deleted inserted replaced
271:485b24cc439b 272:ee00b42e802f
     4 from pytask.profile.forms import CustomRegistrationForm
     4 from pytask.profile.forms import CustomRegistrationForm
     5 
     5 
     6 from django.shortcuts import redirect
     6 from django.shortcuts import redirect
     7 
     7 
     8 # Uncomment the next two lines to enable the admin:
     8 # Uncomment the next two lines to enable the admin:
     9 # from django.contrib import admin
     9 from django.contrib import admin
    10 # admin.autodiscover()
    10 admin.autodiscover()
    11 
    11 
    12 urlpatterns = patterns('',
    12 urlpatterns = patterns('',
    13     # Example:
    13     # Example:
    14     # (r'^pytask/', include('pytask.foo.urls')),
    14     # (r'^pytask/', include('pytask.foo.urls')),
    15 
    15 
    16     # Uncomment the admin/doc line below to enable admin documentation:
    16     # Uncomment the admin/doc line below to enable admin documentation:
    17     # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
    17     # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
    18 
    18 
    19     # Uncomment the next line to enable the admin:
    19     # Uncomment the next line to enable the admin:
    20     # (r'^admin/', include(admin.site.urls)),
    20     (r'^admin/', include(admin.site.urls)),
    21 
    21 
    22     url(r'^accounts/register/$', register,
    22     url(r'^accounts/register/$', register,
    23         {'form_class': CustomRegistrationForm},
    23         {'form_class': CustomRegistrationForm},
    24         name='registration_register'),
    24         name='registration_register'),
    25     (r'^accounts/profile/', include('pytask.profile.urls')),
    25     (r'^accounts/profile/', include('pytask.profile.urls')),