# -*- encoding: utf-8 -*- from django.conf.urls import url from django.views.generic import RedirectView from .views import * urlpatterns = [ url(r'^$', RedirectView.as_view(url='/events/upcoming/', permanent=True)), url(r'^(?P[\d]{4})/$', EventArchiveYear.as_view(), name='event-archive'), url(r'^(?P[\d]{4})/(?P[\d]+)/$', EventArchiveMonth.as_view(), name='event-archive'), url(r'^(?P[\d]{4})/(?P[\d]+)/(?P[\d]+)/$', EventDetail.as_view(), name='event-detail'), url(r'^(?P[\d]{4})/(?P[\d]+)/(?P[\d]+)/add_dates/$', EventSeriesForm.as_view(), name='eventseries-form'), url(r'^(?P[\d]{4})/(?P[\d]+)/(?P[\d]+)/edit/$', EventForm.as_view(), name='event-form'), url(r'^add/$', EventForm.as_view(), name='event-form'), url(r'^archive/$', EventArchiveIndex.as_view(), name='event-archive'), url(r'^upcoming/$', UpcomingEvents.as_view(), name='upcoming-events'), ]