Replaced django.conf.urls.url by django.urls.re_path
This commit is contained in:
@@ -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'),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user