File diff c4f88bd93101 → 2a99a0c81a5d
conservancy/podjango/urls.py
Show inline comments
...
 
@@ -20,7 +20,7 @@
 
import datetime
 

	
 
from django.conf import settings
 
from django.conf.urls import url
 
from django.urls import path
 
from django.views.generic.dates import (
 
    DateDetailView,
 
    DayArchiveView,
...
 
@@ -44,16 +44,16 @@ info_dict = {
 
}
 

	
 
urlpatterns = [
 
    url(r'^$', frontpage.view, name='cast-home'),
 
    url(r'^(?P<year>\d{4})/(?P<month>[a-z]{3})/(?P<day>\w{1,2})/(?P<slug>[-\w]+)/$', DateDetailView.as_view(**info_dict), name='detail'),
 
    url(r'^(?P<year>\d{4})/(?P<month>[a-z]{3})/(?P<day>\w{1,2})/$', DayArchiveView.as_view(**info_dict), name='day-archive'),
 
    url(r'^(?P<year>\d{4})/(?P<month>[a-z]{3})/$', MonthArchiveView.as_view(**info_dict), name='month-archive'),
 
    url(r'^(?P<year>\d{4})/$', YearArchiveView.as_view(**info_dict), name='year-archive'),
 
    url(r'^all/$', custom_index, dict(info_dict, paginate_by=20), name='cast'),
 
    url(r'^query/$', query, name='query'),
 
    url(r'^feeds/ogg/$', OggCastFeed(), name='feed-ogg'),
 
    url(r'^feeds/mp3/$', Mp3CastFeed(), name='feed-mp3'),
 
    url(r'^feeds/$', view, name='feeds'),
 
    path('', frontpage.view, name='cast-home'),
 
    path('<int:year>/<month>/<int:day>/<slug:slug>/', DateDetailView.as_view(**info_dict), name='detail'),
 
    path('<int:year>/<month>/<int:day>/', DayArchiveView.as_view(**info_dict), name='day-archive'),
 
    path('<int:year>/<month>/', MonthArchiveView.as_view(**info_dict), name='month-archive'),
 
    path('<int:year>/', YearArchiveView.as_view(**info_dict), name='year-archive'),
 
    path('all/', custom_index, dict(info_dict, paginate_by=20), name='cast'),
 
    path('query/', query, name='query'),
 
    path('feeds/ogg/', OggCastFeed(), name='feed-ogg'),
 
    path('feeds/mp3/', Mp3CastFeed(), name='feed-mp3'),
 
    path('feeds/', view, name='feeds'),
 
]
 

	
 
if settings.DEBUG: