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_event_office'
urlpatterns = [
url(r'^home$', views.HomeView.as_view(), name='root'),
url(r'^participants$', views.ParticipantListView.as_view(), name='participant-list'),
url(r'^$', views.EventListView.as_view(), name='event-list'),
url(r'^(?P<pk>\d+)/', views.EventDetailView.as_view(), name='event-detail'),
re_path(r'^home$', views.HomeView.as_view(), name='root'),
re_path(r'^participants$', views.ParticipantListView.as_view(), name='participant-list'),
re_path(r'^$', views.EventListView.as_view(), name='event-list'),
re_path(r'^(?P<pk>\d+)/', views.EventDetailView.as_view(), name='event-detail'),
]