"""URLS to access upcoming events and the event archive.""" from django.urls import path from django.views.generic import RedirectView from . import views urlpatterns = [ path("", RedirectView.as_view(url='/events/upcoming/', permanent=True)), path('/', views.EventArchiveYear.as_view(), name='event-archive'), path('//', views.EventArchiveMonth.as_view(), name='event-archive'), path('///', views.EventDetail.as_view(), name='event-detail'), path('///add_dates/', views.EventSeriesForm.as_view(), name='event-series-form'), path('///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'), ]