'django.contrib.auth.views.password_change', name="password_change"), url(r'^accounts/password_changed/$', 'django.contrib.auth.views.password_change_done', name="password_change_done"), url(r'^email-sent/', 'apps.profiler.views.validation_sent'), url(r'^done/$', 'apps.profiler.views.done', name='done'), url(r'^ajax-auth/(?P<backend>[^/]+)/$', 'apps.profiler.views.ajax_auth', name='ajax-auth'), url(r'^email/$', 'apps.profiler.views.require_email', name='require_email'), url(r'^login/', set_auth_cookie(login), name='login'), url(r'^login_auth/$', set_auth_cookie(Login.as_view()), name='login_auth'), url(r'^logout/', external_redirect(set_auth_cookie(logout)), {'next_page': '/'}, name='logout'), url(r'^register/$', MyRegistrationView.as_view(), name='registration_register2'), url(r'profile/$', Profile.as_view(), name='profile'), url('^oauth2/access_token/(?P<token>[\w]+)/$', csrf_exempt(AccessTokenDetailView.as_view()), name='access_token_detail'), url(r'^oauth2/', include('oauth2_provider.urls', namespace = 'oauth2')), url(r'^/receiver.html$', TemplateView.as_view(template_name='-receiver.html') ), url(r'^login-form/$', TemplateView.as_view(template_name='login_form.html'), name='login_form' ),
url(r'^', include('apps.profiler.urls')), url(r'^', include('apps.core.urls')), url(r'^accounts/activate/(?P<activation_key>\w+)/$', set_auth_cookie(CustomActivationView.as_view()), name='registration_activate'), url(r'^register/$', set_auth_cookie(RegistrationView.as_view()), name='registration_register2'), url(r'^accounts/', include('registration.backends.default.urls')), # подтвержения регистрации url(r'^registered/$', set_auth_cookie(RegisteredView.as_view()), name='registered'), # логин url(r'^login/', set_auth_cookie(login), name='login'), url(r'^logout/', external_redirect(set_auth_cookie(logout)), {'next_page': '/'}, name='logout'), # смена пароля url(r'^accounts/password_change/$', 'django.contrib.auth.views.password_change', {'password_change_form': CustomPasswordChangeForm}, name="password_change"), url(r'^accounts/password_changed/$', 'django.contrib.auth.views.password_change_done', name="password_change_done"), # сброс пароля url(r'^user/password/reset/$', 'django.contrib.auth.views.password_reset', {'post_reset_redirect': '/user/password/reset/done/',