equal
deleted
inserted
replaced
1 from django.conf.urls.defaults import * |
1 from django.conf.urls.defaults import * |
2 |
2 |
3 from registration.views import register |
3 from registration.views import register |
4 from pytask.profile.forms import CustomRegistrationForm |
4 from pytask.profile.forms import CustomRegistrationForm |
|
5 |
|
6 from django.shortcuts import redirect |
5 |
7 |
6 # Uncomment the next two lines to enable the admin: |
8 # Uncomment the next two lines to enable the admin: |
7 # from django.contrib import admin |
9 # from django.contrib import admin |
8 # admin.autodiscover() |
10 # admin.autodiscover() |
9 |
11 |
14 # Uncomment the admin/doc line below to enable admin documentation: |
16 # Uncomment the admin/doc line below to enable admin documentation: |
15 # (r'^admin/doc/', include('django.contrib.admindocs.urls')), |
17 # (r'^admin/doc/', include('django.contrib.admindocs.urls')), |
16 |
18 |
17 # Uncomment the next line to enable the admin: |
19 # Uncomment the next line to enable the admin: |
18 # (r'^admin/', include(admin.site.urls)), |
20 # (r'^admin/', include(admin.site.urls)), |
19 url(r'localhost:8000', None, name="site"), |
|
20 |
21 |
21 url(r'^accounts/register/$', register, |
22 url(r'^accounts/register/$', register, |
22 {'form_class': CustomRegistrationForm}, |
23 {'form_class': CustomRegistrationForm}, |
23 name='registration_register'), |
24 name='registration_register'), |
24 |
25 |