mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-19 10:26:17 +00:00
upgrade django to 3.2
This commit is contained in:
@@ -19,7 +19,7 @@ up your own URL patterns for these views instead.
|
||||
|
||||
|
||||
from django.conf.urls import url, include
|
||||
from django.views.generic.simple import direct_to_template
|
||||
from django.views.generic import TemplateView
|
||||
|
||||
from registration.views import activate
|
||||
from registration.views import register
|
||||
@@ -27,8 +27,7 @@ from registration.views import register
|
||||
|
||||
urlpatterns = [
|
||||
url(r'^activate/complete/$',
|
||||
direct_to_template,
|
||||
{ 'template': 'registration/activation_complete.html' },
|
||||
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;
|
||||
@@ -43,12 +42,10 @@ urlpatterns = [
|
||||
{ 'backend': 'registration.backends.default.DefaultBackend' },
|
||||
name='registration_register'),
|
||||
url(r'^register/complete/$',
|
||||
direct_to_template,
|
||||
{ 'template': 'registration/registration_complete.html' },
|
||||
TemplateView.as_view(template_name='registration/registration_complete.html'),
|
||||
name='registration_complete'),
|
||||
url(r'^register/closed/$',
|
||||
direct_to_template,
|
||||
{ 'template': 'registration/registration_closed.html' },
|
||||
TemplateView.as_view(template_name='registration/registration_closed.html'),
|
||||
name='registration_disallowed'),
|
||||
url(r'', include('registration.auth_urls')),
|
||||
]
|
||||
|
Reference in New Issue
Block a user