webfaction and repo.or.cz deployment done
[worddb.git] / libs / registration / urls.py
blob7a462243af78c484d42c9fbaf9a0f330ca6890d1
1 """
2 URLConf for Django user registration and authentication.
4 Recommended usage is a call to ``include()`` in your project's root
5 URLConf to include this URLConf for any URL beginning with
6 ``/accounts/``.
8 """
11 from django.conf.urls.defaults import *
12 from django.views.generic.simple import direct_to_template
13 from django.contrib.auth import views as auth_views
15 from registration.views import activate
16 from registration.views import register
19 urlpatterns = patterns('',
20 # Activation keys get matched by \w+ instead of the more specific
21 # [a-fA-F0-9]{40} because a bad activation key should still get to the view;
22 # that way it can return a sensible "invalid key" message instead of a
23 # confusing 404.
24 url(r'^activate/(?P<activation_key>\w+)/$',
25 activate,
26 name='registration_activate'),
27 url(r'^login/$',
28 auth_views.login,
29 {'template_name': 'registration/login.html'},
30 name='auth_login'),
31 url(r'^logout/$',
32 auth_views.logout,
33 {'template_name': 'registration/logout.html'},
34 name='auth_logout'),
35 url(r'^password/change/$',
36 auth_views.password_change,
37 name='auth_password_change'),
38 url(r'^password/change/done/$',
39 auth_views.password_change_done,
40 name='auth_password_change_done'),
41 url(r'^password/reset/$',
42 auth_views.password_reset,
43 name='auth_password_reset'),
44 url(r'^password/reset/confirm/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$',
45 auth_views.password_reset_confirm,
46 name='auth_password_reset_confirm'),
47 url(r'^password/reset/complete/$',
48 auth_views.password_reset_complete,
49 name='auth_password_reset_complete'),
50 url(r'^password/reset/done/$',
51 auth_views.password_reset_done,
52 name='auth_password_reset_done'),
53 url(r'^register/$',
54 register,
55 name='registration_register'),
56 url(r'^register/complete/$',
57 direct_to_template,
58 {'template': 'registration/registration_complete.html'},
59 name='registration_complete'),