# -*- encoding: utf-8 -*- from django.conf.urls import patterns, url from .views import * urlpatterns = patterns( '', url(r'^$', UpcomingEvents.as_view(), name='upcoming-events'), 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]+)/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'), )