urls.py
changeset 259 3efb40900b87
parent 256 718b7b0309f1
child 264 8c2376baee94
equal deleted inserted replaced
258:0e8d0f5474f2 259:3efb40900b87
     1 from django.conf.urls.defaults import *
     1 from django.conf.urls.defaults import *
       
     2 
       
     3 from registration.views import register
       
     4 from pytask.profile.forms import CustomRegistrationForm
     2 
     5 
     3 # Uncomment the next two lines to enable the admin:
     6 # Uncomment the next two lines to enable the admin:
     4 # from django.contrib import admin
     7 # from django.contrib import admin
     5 # admin.autodiscover()
     8 # admin.autodiscover()
     6 
     9 
    12     # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
    15     # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
    13 
    16 
    14     # Uncomment the next line to enable the admin:
    17     # Uncomment the next line to enable the admin:
    15     # (r'^admin/', include(admin.site.urls)),
    18     # (r'^admin/', include(admin.site.urls)),
    16     url(r'localhost:8000', None, name="site"),
    19     url(r'localhost:8000', None, name="site"),
       
    20 
       
    21     url(r'^accounts/register/$', register,
       
    22         {'form_class': CustomRegistrationForm},
       
    23         name='registration_register'),
    17 )
    24 )