# -*- encoding: utf-8 -*- from django.conf.urls import patterns, include, url from . import views urlpatterns = patterns( '', url(r'^$', views.UpcomingEvents.as_view(), name='upcoming-events'), url( r'^(?P[\d]{4})/$', views.EventArchiveYear.as_view(), name='event-archive' ), url( r'^(?P[\d]{4})/(?P[\d]+)/$', views.EventArchiveMonth.as_view(), name='event-archive' ), url( r'^(?P[\d]{4})/(?P[\d]+)/(?P[\d]+)/$', views.EventDetail.as_view(), name='event-detail' ), url( r'^(?P[\d]{4})/(?P[\d]+)/(?P[\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' ), )