from django.contrib.auth import views from accounts.views import RegistrationView from .views import login urlpatterns = patterns('accounts.views', url(r'^login/$', login, name='login'), url(r'^logout/$', logout_then_login, name='logout'), ) # Password reset urlpatterns += patterns('django.contrib.auth.views', url(r'^account/password_reset/$', 'password_reset', name='password_reset', kwargs={'password_reset_form': PasswordResetForm}), url(r'^account/password_reset/done/$', 'password_reset_done', name='password_reset_done',), url(r'^account/reset/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$', 'password_reset_confirm', name='password_reset_confirm', kwargs={'set_password_form': SetPasswordForm}), url(r'^account/reset/done/$', 'password_reset_complete', name='password_reset_complete'), url(r'^register/$', RegistrationView.as_view(), name='register'), url(r'^register/done/$', views.password_reset_done, {'template_name': 'registration/initial_done.html', }, name='register-done'), url(r'^register/password/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$', views.password_reset_confirm, { 'template_name': 'registration/initial_confirm.html', 'post_reset_redirect': 'login', }, name='register-confirm'), url(r'^register/complete/$', views.password_reset_complete, {'template_name': 'registration/initial_complete.html', }, name='register-complete'), )
from django.conf.urls import patterns, url from django.contrib.auth.decorators import login_required from accounts.views import LoginView, LogoutView, RegistrationView, AboutView, Profile urlpatterns = [ url(r'^signup/$', RegistrationView.as_view(),name='signup'), url(r'^login/$', LoginView.as_view(),name='login'), url(r'^logout/$', LogoutView.as_view(),name='logout'), url(r'^profile/$', Profile.as_view(),name='profile'), url(r'^about/$', AboutView.as_view(),name='about') ]
if settings.ALLOW_REGISTRATION: urlpatterns += patterns('', url(r'^accounts/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'^accounts/activate/(?P<activation_key>\w+)/$', ActivationView.as_view(), name='registration_activate'), url(r'^accounts/register/$', RegistrationView.as_view(), {'backend': 'accounts.backend.Backend'}, name='registration_register'), url(r'^accounts/register/complete/$', TemplateView.as_view(template_name='registration/registration_complete.html'), name='registration_complete'), url(r'^accounts/register/closed/$', TemplateView.as_view(template_name='registration/registration_closed.html'), name='registration_disallowed'), url(r'^accounts/register/after-first-login/$', accounts.views.AfterFirstLoginView.as_view(), name='after_first_login'), )
"""django_todo_project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.9/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') Including another URLconf 1. Add an import: from blog import urls as blog_urls 2. Import the include() function: from django.conf.urls import url, include 3. Add a URL to urlpatterns: url(r'^blog/', include(blog_urls)) """ from django.conf.urls import url, include from django.contrib import admin from rest_framework_jwt.views import obtain_jwt_token from todo.views import TodoView from accounts.views import RegistrationView urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^todo/$', TodoView.as_view()), url(r'^todo/(?P<pk>[0-9]+)/$', TodoView.as_view()), url(r'^accounts/register/$', RegistrationView.as_view()), url(r'^accounts/api-token-auth/$', obtain_jwt_token), url(r'^docs/', include('rest_framework_docs.urls')), ]
.. module:: shweb.accounts :platform: Unix, Windows :synopsis: Module with url patters for accounts application. """ from django.conf.urls import patterns, url from accounts.views import ( RegistrationView, AccountConfirmation, ) urlpatterns = patterns('', url(r"^signup/$", RegistrationView.as_view(), name="signup"), url(r"^confirm/(?P<code>[A-Za-z0-9_\-]+)/$", AccountConfirmation.as_view(), name="confirm"), url(r"^password/reset/$", 'django.contrib.auth.views.password_reset', {'template_name': 'registration/password_reset_form.html', 'post_reset_redirect': 'accounts:password_reset_done'}, name="password_reset"), url(r"^password/reset/done/$", 'accounts.views.password_reset_done', name="password_reset_done"), url(r"^password/reset/complete/$", 'accounts.views.password_reset_complete', name="password_reset_complete"), url(r"^password/reset/(?P<uidb64>[0-9A-Za-z]+)-(?P<token>.+)/$", 'django.contrib.auth.views.password_reset_confirm', {'post_reset_redirect': 'accounts:password_reset_complete'}, name="password_reset_confirm"), )
from django.contrib.auth.views import LoginView, LogoutView from django.urls.conf import path from accounts.views import RegistrationView, UserUpdateView, \ UserPasswordChangeView app_name = 'accounts' urlpatterns = [ path('login/', LoginView.as_view(template_name='accounts/login.html'), name='login'), path('logout/', LogoutView.as_view(), name='logout'), path('password_change/', UserPasswordChangeView.as_view(), name='password_change'), # path('password_change/done/', views.PasswordChangeDoneView.as_view(), name='password_change_done'), # path('password_reset/', views.PasswordResetView.as_view(), name='password_reset'), # path('password_reset/done/', views.PasswordResetDoneView.as_view(), name='password_reset_done'), # path('reset/<uidb64>/<token>/', views.PasswordResetConfirmView.as_view(), name='password_reset_confirm'), # path('reset/done/', views.PasswordResetCompleteView.as_view(), name='password_reset_complete'), path('register/', RegistrationView.as_view(), name='register'), path('update/', UserUpdateView.as_view(), name='update'), path('password_change/', UserPasswordChangeView.as_view(), name='password_change') ]
if settings.ALLOW_REGISTRATION: urlpatterns += [ 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+)/$', ActivationView.as_view(), name='registration_activate'), url(r'register/$', RegistrationView.as_view(), {'backend': 'accounts.backend.Backend'}, name='registration_register'), url(r'register/complete/$', RegistrationCompleteView.as_view(), name='registration_complete'), url(r'register/closed/$', TemplateView.as_view( template_name='registration/registration_closed.html'), name='registration_disallowed'), url(r'register/after-first-login/$', accounts.views.AfterFirstLoginView.as_view(), name='after_first_login'), ] urlpatterns = [path(r'accounts/', include(urlpatterns))]
context_object_name='example_itineraries' ), name="itineraryexamples" ), url(r'^legal$', StaticPageView.as_view(template_name="legal"), name="legal" ), url(r'^printpreview/(?P<pk>\d+)$', personalize.PrintPreview.as_view(), name="printpreview" ), url(r'^sitedetails/(?P<pk>\d+)$', SiteDetailVeiw.as_view(), name='sitedetails' ), url(r'^sites$', SiteView.as_view(), name="sites"), url(r'^registration$', RegistrationView.as_view(), name="registration"), url(r'^confirm_registration/(?P<id>\w+)/(?P<confirmation_hash>\w+)$', RegistrationConfirmView.as_view(), name="confirmregistration" ), url(r'^login$', LoginView.as_view(), name="login"), url(r'^logout$', LogoutView.as_view(), name="logout"), url(r'^reset_password$', ResetPasswordView.as_view(), name="resetpassword" ), url(r'^password/reset/confirm/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$', password_reset_confirm, { 'template_name': 'password_reset_confirm.html', 'post_reset_redirect': '/' }, name='passwordresetconfirm' ),
# coding: utf-8 from django.conf.urls import patterns, url from django.contrib.auth import views from django.contrib.auth.decorators import login_required, user_passes_test from accounts.views import ( RegistrationView, LoginView, LogOut, ProfileView, ProfileSettingsView, ProfileAccessView, ProfileModelsListView, ) urlpatterns = patterns( u"accounts.views", url(r"^register/$", RegistrationView.as_view(), name=u"registration"), url(r"^login/$", LoginView.as_view(), name=u"login"), url(r"^logout/$", LogOut.as_view(), name=u"logout"), url(r"^profile/$", login_required(ProfileView.as_view()), name=u"profile"), url(r"^profile/settings/$", login_required(ProfileSettingsView.as_view()), name=u"profile_settings"), url(r"^profile/access/$", login_required(ProfileAccessView.as_view()), name=u"profile_access"), url(r"^profile/models_list/$", login_required(ProfileModelsListView.as_view()), name=u"profile_models_list"), )
checkout_address_reuse_view, name='checkout_address_reuse'), url(r'^login/$', LoginView.as_view(), name='login'), url(r'^registration/guest/$', guest_registration_view, name='guest_registration'), url(r'^logout/$', LogoutView.as_view(), name='logout'), url(r'^api/cart/$', cart_detail_view_api, name='cart-api'), url(r'^cart/', include("carts.urls", namespace='cart')), url(r'^billing/payment-method/$', payment_method_view, name='billing-payment-method'), url(r'^billing/payment-method/create/$', payment_method_createview, name='billing-payment-method-endpoint'), url(r'^registration/$', RegistrationView.as_view(), name='registration'), url(r'^bootstrap/$', TemplateView.as_view(template_name='bootstrap/example.html')), url(r'^wandsproducts/', include("wandsproducts.urls", namespace='wandsproducts')), url(r'^search/', include("search.urls", namespace='search')), url(r'^settings/email/$', EmailingPreferencesUpdateView.as_view(), name='email-pref'), url(r'^webhooks/mailchimp/$', MailchimpHookView.as_view(), name='webhooks-mailchimp'), url(r'^admin/', admin.site.urls), ] if settings.DEBUG:
url(r'^password/reset/$', 'password_reset', {'template_name': 'accounts/password_reset.html', 'email_template_name': 'accounts/mails/password_reset_email.html', 'password_reset_form': PasswordResetCustomerForm}, name='auth_password_reset'), url( r'^password/reset/confirm/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>.+)/$', 'password_reset_confirm', { 'template_name': 'accounts/password_reset_confirm.html', 'set_password_form': SetPasswordCustomerForm}, name='auth_password_reset_confirm'), url(r'^password/reset/complete/$', 'password_reset_complete', { 'template_name': 'accounts/password_reset_complete.html'}, name='password_reset_complete'), url(r'^password/reset/done/$', 'password_reset_done', { 'template_name': 'accounts/password_reset_done.html' }, name='password_reset_done')) urlpatterns += patterns('', url(r'^registration/$', RegistrationView.as_view(), name='registration'), url(r'^employer/profile/$', TemplateView.as_view( template_name='accounts/registration.html'), name='registration_type'), )
1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home') Including another URLconf 1. Import the include() function: from django.conf.urls import url, include 2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls')) """ from django.conf.urls import url, include from django.conf.urls.static import static from django.contrib import admin from django.conf import settings from accounts.views import RegistrationView from accounts.forms import RegistrationForm urlpatterns = [ url(r'^admin/', include(admin.site.urls)), url(r'^summernote/', include('django_summernote.urls')), url(r'^accounts/', include('accounts.urls')), url(r'^accounts/register/$', RegistrationView.as_view( form_class=RegistrationForm ), name='registration_register'), url(r'^accounts/', include('registration.backends.hmac.urls')), url(r'^', include('board.urls')), ] if settings.DEBUG: urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
.. module:: shweb.accounts :platform: Unix, Windows :synopsis: Module with url patters for accounts application. """ from django.conf.urls import patterns, url from accounts.views import ( RegistrationView, AccountConfirmation, ) urlpatterns = patterns( '', url(r"^signup/$", RegistrationView.as_view(), name="signup"), url(r"^confirm/(?P<code>[A-Za-z0-9_\-]+)/$", AccountConfirmation.as_view(), name="confirm"), url(r"^password/reset/$", 'django.contrib.auth.views.password_reset', { 'template_name': 'registration/password_reset_form.html', 'post_reset_redirect': 'accounts:password_reset_done' }, name="password_reset"), url(r"^password/reset/done/$", 'accounts.views.password_reset_done', name="password_reset_done"), url(r"^password/reset/complete/$", 'accounts.views.password_reset_complete', name="password_reset_complete"),
from django.conf.urls import patterns, url from accounts.views import LoginView, LogoutView, RegistrationView urlpatterns = patterns('', url(r'^users/sign_in$', LoginView.as_view(), name='accounts.views.login'), url(r'^users/sign_out$', LogoutView.as_view(), name='accounts.views.logout'), url(r'^registration/new$', RegistrationView.as_view(), name='accounts.views.registration'), )
from django.urls import path from rest_framework_simplejwt.views import TokenRefreshView from accounts.views import LoginView, RegistrationView, UserActivityView urlpatterns = [ path('auth/login/', LoginView.as_view(), name='user-login'), path('auth/register/', RegistrationView.as_view(), name='user-register'), path('auth/refresh-token/', TokenRefreshView.as_view(), name='token-refresh'), path('user-activity/<pk>/', UserActivityView.as_view(), name='user-activity'), ]
"""yourblog URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') Including another URLconf 1. Import the include() function: from django.urls import include, path 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) """ from django.contrib import admin from django.conf.urls import url, include from blog.views import index from accounts.views import RegistrationView, LoginView, logout_view, PostOfUserView urlpatterns = [ url('^$', index), url('admin/', admin.site.urls), url(r'^api-auth/', include('rest_framework.urls')), url('blog/', include('blog.urls')), url('register', RegistrationView.as_view(), name='register'), url('login', LoginView.as_view(), name='login'), url('logout', logout_view, name='logout'), url(r'(?P<pk>\d+)/myposts', PostOfUserView.as_view(), name='user-posts') ]