Another Step in the Quest to clean up the code base.
This commit is contained in:
@@ -1,21 +1,22 @@
|
||||
# -*- encoding: utf-8 -*-
|
||||
"""URLS to access upcoming events and the event archive."""
|
||||
from django.conf.urls import url
|
||||
from django.views.generic import RedirectView
|
||||
from .views import *
|
||||
from . import views
|
||||
|
||||
urlpatterns = [
|
||||
url(r'^$', RedirectView.as_view(url='/events/upcoming/', permanent=True)),
|
||||
url(r'^(?P<year>[\d]{4})/$', EventArchiveYear.as_view(),
|
||||
url(r'^(?P<year>[\d]{4})/$', views.EventArchiveYear.as_view(),
|
||||
name='event-archive'),
|
||||
url(r'^(?P<year>[\d]{4})/(?P<month>[\d]+)/$', EventArchiveMonth.as_view(),
|
||||
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]+)/$',
|
||||
EventDetail.as_view(), name='event-detail'),
|
||||
views.EventDetail.as_view(), name='event-detail'),
|
||||
url(r'^(?P<year>[\d]{4})/(?P<month>[\d]+)/(?P<pk>[\d]+)/add_dates/$',
|
||||
EventSeriesForm.as_view(), name='eventseries-form'),
|
||||
views.EventSeriesForm.as_view(), name='eventseries-form'),
|
||||
url(r'^(?P<year>[\d]{4})/(?P<month>[\d]+)/(?P<pk>[\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'),
|
||||
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'),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user