__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
    suffix = settings.REGISTRATION_DJANGO_AUTH_URL_NAMES_SUFFIX

    import django
    if django.VERSION >= (1, 6):
예제 #2
0
파일: urls.py 프로젝트: langcog/web-cdi
    '''

    urlpatterns += [
        url(r'^login/$', auth_views.LoginView.as_view(),
            {'template_name': 'registration/login.html'},
            name=prefix+'login'+suffix),
        url(r'^logout/$', auth_views.LogoutView.as_view(),
            {'template_name': 'registration/logout.html'},
            name=prefix+'logout'+suffix),
        url(r'^password/change/$', auth_views.PasswordChangeView.as_view(),
            name=prefix+'password_change'+suffix),
        url(r'^password/change/done/$', auth_views.PasswordChangeDoneView.as_view(),
            name=prefix+'password_change_done'+suffix),
        url(r'^password/reset/$', auth_views.PasswordResetView.as_view(),
            name=prefix+'password_reset'+suffix, kwargs=dict(
                post_reset_redirect=prefix+'password_reset_done'+suffix)),
        path('password/reset/confirm/<str:uidb64>/<str:token>',
        #url(password_reset_confirm_rule,
            auth_views.PasswordResetConfirmView.as_view(),
            name=prefix+'password_reset_confirm'+suffix),
        url(r'^password/reset/complete/$', auth_views.PasswordResetCompleteView.as_view(),
            name=prefix+'password_reset_complete'+suffix),
        url(r'^password/reset/done/$', auth_views.PasswordResetDoneView.as_view(),
            name=prefix+'password_reset_done'+suffix),
    ]

import django
if django.VERSION <= (1, 8):
    from registration.compat import patterns
    urlpatterns = patterns('', *urlpatterns)
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
    suffix = settings.REGISTRATION_DJANGO_AUTH_URL_NAMES_SUFFIX
예제 #4
0
파일: urls.py 프로젝트: glisti/horsys
# 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'),
)
예제 #5
0
# -*- 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)),
)
예제 #6
0
# -*- 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')),
)
            r"^password/reset/confirm/%s-%s/$" % (uidb, token)
        )

    urlpatterns += [
        url(r'^login/$', auth_views.login,
            {'template_name': 'registration/login.html'},
            name=prefix+'login'+suffix),
        url(r'^logout/$', auth_views.logout,
            {'template_name': 'registration/logout.html'},
            name=prefix+'logout'+suffix),
        url(r'^password/change/$', auth_views.password_change,
            name=prefix+'password_change'+suffix),
        url(r'^password/change/done/$', auth_views.password_change_done,
            name=prefix+'password_change_done'+suffix),
        url(r'^password/reset/$', auth_views.password_reset,
            name=prefix+'password_reset'+suffix, kwargs=dict(
                post_reset_redirect=prefix+'password_reset_done'+suffix)),
        url(password_reset_confirm_rule,
            auth_views.password_reset_confirm,
            name=prefix+'password_reset_confirm'+suffix),
        url(r'^password/reset/complete/$', auth_views.password_reset_complete,
            name=prefix+'password_reset_complete'+suffix),
        url(r'^password/reset/done/$', auth_views.password_reset_done,
            name=prefix+'password_reset_done'+suffix),
    ]

import django
if django.VERSION <= (1, 8):
    from registration.compat import patterns
    urlpatterns = patterns('', *urlpatterns)
예제 #8
0
파일: urls.py 프로젝트: AttaQ/Kawaz3rd
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'),
    )
예제 #9
0
__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'},
        name='auth_login'),
    url(r'^logout/$', auth_views.logout,
        {'template_name': 'registration/logout.html'},
        name='auth_logout'),
# -*- 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')),
)