Fixed: ugettext has been deprecated
Fixed: Deprecatios for Django 4.0 Changed: path instead of url_path Added: fiaxateranking command
This commit is contained in:
@@ -1,22 +1,16 @@
|
||||
"""URLS to access upcoming events and the event archive."""
|
||||
from django.conf.urls import url
|
||||
from django.urls import path
|
||||
from django.views.generic import RedirectView
|
||||
from . import views
|
||||
|
||||
urlpatterns = [
|
||||
url(r'^$', RedirectView.as_view(url='/events/upcoming/', permanent=True)),
|
||||
url(r'^(?P<year>[\d]{4})/$', views.EventArchiveYear.as_view(),
|
||||
name='event-archive'),
|
||||
url(r'^(?P<year>[\d]{4})/(?P<month>[\d]+)/$',
|
||||
views.EventArchiveMonth.as_view(),
|
||||
name='event-archive'),
|
||||
url(r'^(?P<year>[\d]{4})/(?P<month>[\d]+)/(?P<pk>[\d]+)/$',
|
||||
views.EventDetail.as_view(), name='event-detail'),
|
||||
url(r'^(?P<year>[\d]{4})/(?P<month>[\d]+)/(?P<pk>[\d]+)/add_dates/$',
|
||||
views.EventSeriesForm.as_view(), name='eventseries-form'),
|
||||
url(r'^(?P<year>[\d]{4})/(?P<month>[\d]+)/(?P<pk>[\d]+)/edit/$',
|
||||
views.EventForm.as_view(), name='event-form'),
|
||||
url(r'^add/$', views.EventForm.as_view(), name='event-form'),
|
||||
url(r'^archive/$', views.EventArchiveIndex.as_view(), name='event-archive'),
|
||||
url(r'^upcoming/$', views.UpcomingEvents.as_view(), name='upcoming-events'),
|
||||
path("", RedirectView.as_view(url='/events/upcoming/', permanent=True)),
|
||||
path('<int:year>/', views.EventArchiveYear.as_view(), name='event-archive'),
|
||||
path('<int:year>/<int:month>/', views.EventArchiveMonth.as_view(), name='event-archive'),
|
||||
path('<int:year>/<int:month>/<int:pk>/', views.EventDetail.as_view(), name='event-detail'),
|
||||
path('<int:year>/<int:month>/<int:pk>/add_dates/', views.EventSeriesForm.as_view(), name='eventseries-form'),
|
||||
path('<int:year>/<int:month>/<int:pk>/edit/', views.EventForm.as_view(), name='event-form'),
|
||||
path('add/', views.EventForm.as_view(), name='event-form'),
|
||||
path('archive/', views.EventArchiveIndex.as_view(), name='event-archive'),
|
||||
path('upcoming/', views.UpcomingEvents.as_view(), name='upcoming-events'),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user