|
1 from django.conf.urls.defaults import * |
|
2 |
|
3 from registration.views import register |
|
4 from registration.backends.default import DefaultBackend |
|
5 from pytask.profile.forms import CustomRegistrationForm |
|
6 |
|
7 from django.shortcuts import redirect |
|
8 |
|
9 # Uncomment the next two lines to enable the admin: |
|
10 from django.contrib import admin |
|
11 admin.autodiscover() |
|
12 |
|
13 urlpatterns = patterns('', |
|
14 # Example: |
|
15 # (r'^pytask/', include('pytask.foo.urls')), |
|
16 |
|
17 # Uncomment the admin/doc line below to enable admin documentation: |
|
18 # (r'^admin/doc/', include('django.contrib.admindocs.urls')), |
|
19 |
|
20 # Uncomment the next line to enable the admin: |
|
21 (r'^admin/', include(admin.site.urls)), |
|
22 |
|
23 (r'^static/(?P<path>.*)$', 'django.views.static.serve', |
|
24 {'document_root': './pytask/static/'}), |
|
25 |
|
26 url(r'^accounts/register/$', register, |
|
27 {'form_class': CustomRegistrationForm, |
|
28 'backend': 'registration.backends.default.DefaultBackend'}, |
|
29 name='registration_register'), |
|
30 |
|
31 (r'^accounts/', include('registration.urls')), |
|
32 (r'^profile/', include('pytask.profile.urls')), |
|
33 ) |