from registration.views import edu_exp_addition, work_exp_addition, edu_exp_delete, work_exp_delete urlpatterns = [ path( 'admin/', include([ path('dashboard', DashboardView.as_view(), name='dashboard'), path('dashboard/', include([path('', include('proclamation.urls'))])), path('users', UserDetailView.as_view(), name='user_detail'), path('', include('rank.urls')) ])), path( 'accounts/', include([ path('register', RegisterView.as_view(), name='register'), path( 'register/', include([ path('traveler', TravelerRegisterView.as_view(), name='traveler_register'), path('proprietor', ProprietorRegisterView.as_view(), name='proprietor_register'), ])), path('login', LoginView.as_view(template_name='login.html'), name='login'), path('logout', LogoutView.as_view(), name='logout'), path('change', user_change, name='user_change'),
from django.conf.urls import url from django.contrib import admin from registration.views import RegisterView from authentication.views \ import LoginView, AuthTokenView, AuthTokenServiceView, LogoutView urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^register/', RegisterView.as_view()), url(r'^login/', LoginView.as_view()), url(r'^logout/', LogoutView.as_view()), url(r'^auth-token/', AuthTokenView.as_view()), url(r'^auth-token-service/', AuthTokenServiceView.as_view()), ]
from django.conf.urls import patterns, url from registration.views import RegisterView from .forms import MyRegistrationForm urlpatterns = patterns( '', url(r'^register/$', RegisterView.as_view(form_class=MyRegistrationForm), name='registration_register'), )
from django.urls import path from registration.views import UserLoginView, UserLogoutView, ChangePassView, ChangePassDoneView, EmailFormView, EmailSentView, ResetFormView, ResetCompleteView, RegisterView, Profile from django.views.generic.base import TemplateView, RedirectView urlpatterns = [ # user registration and login, logout urls path('register/', RegisterView.as_view(), name='registerurl'), path('userlogin/', UserLoginView.as_view(), name='userloginurl'), path('userlogout/', UserLogoutView.as_view(), name='userlogouturl'), # password change urls path('changepass/', ChangePassView.as_view(), name='changepassurl'), path('changepassdone/', ChangePassDoneView.as_view(), name='changepassdoneurl'), # password reset urls path('emailform/', EmailFormView.as_view(), name='emailformurl'), path('emailsent/', EmailSentView.as_view(), name='emailsenturl'), path('resetform/<uidb64>/<token>/', ResetFormView.as_view(), name='resetformurl'), path('resetcomplete/', ResetCompleteView.as_view(), name='resetcompleteurl'), # profile urls path('profile/', Profile.as_view(), name='profileurl'), path('profile/<int:id>/', Profile.as_view(), name='profileinturl'), ]
from registration import get_register_backend from registration.views import (LoginView, LogoutView, ActivateView, RegisterView, ProfileView) urlpatterns = patterns( '', url(r'^profile/$', ProfileView.as_view(), name="profile"), url(r'^login/$', LoginView.as_view(), {'backend': get_register_backend()}, name='auth_login'), url(r'^logout/$', LogoutView.as_view(), {'backend': get_register_backend()}, name='auth_logout'), url(r'^register/$', RegisterView.as_view(), {'backend': get_register_backend()}, name='registration_register'), url(r'^activate/(?P<activation_key>\w+)/$', ActivateView.as_view(), {'backend': 'registration.backends.default.DefaultBackend'}, name='registration_activate'), # url(r'^password/change/$', # auth_views.password_change, # name='auth_password_change'), # url(r'^password/change/done/$', # auth_views.password_change_done, # name='auth_password_change_done'), # url(r'^password/reset/$', # auth_views.password_reset, # name='auth_password_reset'),
If you'd like to customize the behavior (e.g., by passing extra arguments to the various views) or split up the URLs, feel free to set up your own URL patterns for these views instead. """ from django.conf.urls import * from django.views.generic import TemplateView from registration.views import ActivateView, RegisterView urlpatterns = patterns('', url(r'^activate/complete$', TemplateView.as_view(template_name='registration/activation_complete.html'), name='registration_activation_complete'), # Activation keys get matched by \w+ instead of the more specific # [a-fA-F0-9]{40} because a bad activation key should still get to the view; # that way it can return a sensible "invalid key" message instead of a # confusing 404. url(r'^activate/(?P<activation_key>\w+)/$', ActivateView.as_view(), {'backend': 'registration.backends.default.DefaultBackend'}, name='registration_activate'), url(r'^register/$', RegisterView.as_view(), {'backend': 'registration.backends.default.DefaultBackend'}, name='registration_register'), url(r'^register/complete/$', TemplateView.as_view(template_name='registration/registration_complete.html'), name='registration_complete'), url(r'^register/closed/$', TemplateView.as_view(template_name='registration/registration_closed.html'), name='registration_disallowed'), (r'', include('registration.auth_urls')), )
from django.conf.urls import patterns, url from registration.views import RegisterView from .forms import MyRegistrationForm urlpatterns = patterns('', url(r'^register/$', RegisterView.as_view(form_class=MyRegistrationForm), name='registration_register'), )
ForumView, \ BookingView, BookingHotelUpdateView, BookingRoomUpdateView, \ EmailVerifyView urlpatterns = [ path( 'registration/', include([ path('login', LoginView.as_view(template_name='login.html'), name='login'), path('logout', LogoutView.as_view(template_name='logout.html'), name='logout'), path('register', RegisterView.as_view(template_name='register.html'), name='register'), path('<str:username>', ProfileView.as_view(template_name='profile.html'), name='profile'), path( '<str:username>/', include([ path('update', ProfileUpdateView.as_view( template_name='profile_update.html'), name='profile_update'), path('delete', UserDeleteView.as_view(), name='user_delete'), path('dashboard',
template_name='authn/password_change_done.html'), name='password_change_done'), url('^password_change/', PasswordChangeView.as_view( template_name='authn/password_change_form.html'), name='password_change'), url('^password_reset/done/', PasswordResetDoneView.as_view( template_name='authn/password_reset_done.html'), name='password_reset_done'), url('^password_reset/', PasswordResetView.as_view( template_name='authn/password_reset_form.html'), name='password_reset'), url('^reset/done/', PasswordResetCompleteView.as_view( template_name='authn/password_reset_complete.html'), name='password_reset_complete'), path('reset/<uidb64>/<token>/', PasswordResetConfirmView.as_view( template_name='authn/password_reset_confirm.html'), name='password_reset_confirm'), # TODO Registration (with non-enumerable responses and rate limited emails) url('^register/', RegisterView.as_view(), name='register'), # Social OAuth with Discord # Email verification (with rate limited re-sends) # /email-verify?token=zzzzzzzz ]
(r'^accounts/', include('registration.backends.simple.urls')), This will also automatically set up the views in ``django.contrib.auth`` at sensible default locations. If you'd like to customize the behavior (e.g., by passing extra arguments to the various views) or split up the URLs, feel free to set up your own URL patterns for these views instead. """ from django.conf.urls import * from django.views.generic import TemplateView from registration.views import ActivateView, RegisterView urlpatterns = patterns('', url(r'^register/$', RegisterView.as_view(), {'backend': 'registration.backends.simple.SimpleBackend'}, name='registration_register'), url(r'^register/closed/$', TemplateView.as_view( template_name='registration/registration_closed.html'), name='registration_disallowed'), (r'', include('registration.auth_urls')), )