# coding=utf-8 """ URLconf for django-inspectional-registration """ __author__ = 'Alisue <*****@*****.**>' from registration.compat import url from registration.compat import patterns from registration.views import RegistrationView from registration.views import RegistrationClosedView from registration.views import RegistrationCompleteView from registration.views import ActivationView from registration.views import ActivationCompleteView urlpatterns = patterns('', url(r'^activate/complete/$', ActivationCompleteView.as_view(), name='registration_activation_complete'), url(r'^activate/(?P<activation_key>\w+)/$', ActivationView.as_view(), name='registration_activate'), url(r'^register/$', RegistrationView.as_view(), name='registration_register'), url(r'^register/closed/$', RegistrationClosedView.as_view(), name='registration_disallowed'), url(r'^register/complete/$', RegistrationCompleteView.as_view(), name='registration_complete'), ) # django.contrib.auth from registration.conf import settings from django.contrib.auth import views as auth_views if settings.REGISTRATION_DJANGO_AUTH_URLS_ENABLE: prefix = settings.REGISTRATION_DJANGO_AUTH_URL_NAMES_PREFIX
# -*- coding: utf-8 -*- from __future__ import unicode_literals """ URLconf for django-inspectional-registration """ __author__ = 'Alisue <*****@*****.**>' from registration.compat import url from registration.views import RegistrationView from registration.views import RegistrationClosedView from registration.views import RegistrationCompleteView from registration.views import ActivationView from registration.views import ActivationCompleteView urlpatterns = [ url(r'^activate/complete/$', ActivationCompleteView.as_view(), name='registration_activation_complete'), url(r'^activate/(?P<activation_key>\w+)/$', ActivationView.as_view(), name='registration_activate'), url(r'^register/$', RegistrationView.as_view(), name='registration_register'), url(r'^register/closed/$', RegistrationClosedView.as_view(), name='registration_disallowed'), url(r'^register/complete/$', RegistrationCompleteView.as_view(), name='registration_complete'), ] # django.contrib.auth from django.urls import path from registration.conf import settings from django.contrib.auth import views as auth_views
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib import admin from registration.compat import url, patterns, include admin.autodiscover() urlpatterns = patterns( '', url(r'^admin/', include(admin.site.urls)), url(r'^registration/', include('registration.urls')), )
# coding=utf-8 """ URLconf for django-inspectional-registration """ __author__ = 'Alisue <*****@*****.**>' from registration.compat import url from registration.compat import patterns from registration.views import RegistrationView from registration.views import RegistrationClosedView from registration.views import RegistrationCompleteView from registration.views import ActivationView from registration.views import ActivationCompleteView urlpatterns = patterns('', url(r'^activate/complete/$', ActivationCompleteView.as_view(), name='registration_activation_complete'), url(r'^activate/(?P<activation_key>\w+)/$', ActivationView.as_view(), name='registration_activate'), url(r'^register/$', RegistrationView.as_view(), name='registration_register'), url(r'^register/closed/$', RegistrationClosedView.as_view(), name='registration_disallowed'), url(r'^register/complete/$', RegistrationCompleteView.as_view(), name='registration_complete'), )
# -*- coding: utf-8 -*- from __future__ import unicode_literals from registration.compat import url from registration.compat import patterns from registration.compat import include from django.contrib import admin admin.autodiscover() # default template used in template # require admin site urlpatterns = patterns( '', url(r'^admin/', include(admin.site.urls)), )
from registration.compat import url from registration.compat import patterns from django.contrib.auth import views as auth_views urlpatterns = patterns('', url(r'^login/$', auth_views.login, {'template_name': 'registration/login.html'}, name='login'), url(r'^logout/$', auth_views.logout, {'template_name': 'registration/logout.html'}, name='logout'), url(r'^password/change/$', auth_views.password_change, name='password_change'), url(r'^password/change/done/$', auth_views.password_change_done, name='password_change_done'), url(r'^password/reset/$', auth_views.password_reset, name='password_reset', kwargs=dict( post_reset_redirect='password_reset_done')), url(r'^password/reset/confirm/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$', auth_views.password_reset_confirm, name='password_reset_confirm'), url(r'^password/reset/complete/$', auth_views.password_reset_complete, name='password_reset_complete'), url(r'^password/reset/done/$', auth_views.password_reset_done, name='password_reset_done'), )
# coding=utf-8 """ URLconf for django-inspectional-registration """ __author__ = 'Alisue <*****@*****.**>' from registration.compat import url from registration.compat import patterns from registration.views import RegistrationView from registration.views import RegistrationClosedView from registration.views import RegistrationCompleteView from registration.views import ActivationView from registration.views import ActivationCompleteView urlpatterns = patterns('', url(r'^activate/complete/$', ActivationCompleteView.as_view(), name='registration_activation_complete'), url(r'^activate/(?P<activation_key>\w+)/$', ActivationView.as_view(), name='registration_activate'), url(r'^register/$', RegistrationView.as_view(), name='registration_register'), url(r'^register/closed/$', RegistrationClosedView.as_view(), name='registration_disallowed'), url(r'^register/complete/$', RegistrationCompleteView.as_view(), name='registration_complete'), ) # django.contrib.auth from django.contrib.auth import views as auth_views urlpatterns += patterns('', url(r'^login/$', auth_views.login, {'template_name': 'registration/login.html'},
# -*- coding: utf-8 -*- from __future__ import unicode_literals from registration.compat import url from registration.compat import patterns from registration.compat import include from django.contrib import admin admin.autodiscover() # default template used in template # require admin site urlpatterns = patterns('', url(r'^admin/', include(admin.site.urls)), )
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib import admin from registration.compat import url, patterns, include admin.autodiscover() urlpatterns = patterns('', url(r'^admin/', include(admin.site.urls)), url(r'^registration/', include('registration.urls')), )