Replaced django.conf.urls.url by django.urls.re_path

This commit is contained in:
2025-04-10 12:14:35 +02:00
parent e953dcc7e0
commit b70fbbfa90
7 changed files with 39 additions and 39 deletions

View File

@@ -1,12 +1,12 @@
from django.conf.urls import url
from django.urls import re_path
from . import views
app_name = 'dav_auth'
urlpatterns = [
url(r'^login$', views.LoginView.as_view(), name='login'),
url(r'^logout$', views.LogoutView.as_view(), name='logout'),
url(r'^password$', views.SetPasswordView.as_view(), name='set_password'),
url(r'^password/recreate$', views.CreateAndSendPasswordView.as_view(), name='recreate_password'),
re_path(r'^login$', views.LoginView.as_view(), name='login'),
re_path(r'^logout$', views.LogoutView.as_view(), name='logout'),
re_path(r'^password$', views.SetPasswordView.as_view(), name='set_password'),
re_path(r'^password/recreate$', views.CreateAndSendPasswordView.as_view(), name='recreate_password'),
]