PageDetailView.as_view(model=Class), name='class_detail'), url(r'^events/news/(?P<pk>\d+)/(?P<slug>[\w-]+)/$', PageDetailView.as_view(model=News), name='news_detail'), url(r'^events/past/(?P<pk>\d+)/(?P<slug>[\w-]+)/$', PageDetailView.as_view(model=PastEvent), name='past_event_detail'), url(r'^teachings/(?P<pk>\d+)/(?P<slug>[\w-]+)/$', PageDetailView.as_view(model=Teaching), name='teaching_detail'), ) urlpatterns += patterns('django.views.generic.list_detail', url(r'^about/$', PageListView.as_view(model=About), name='about_page_index'), url(r'^classes/$', PageListView.as_view(model=Class), name='class_index'), url(r'^teachings/$', PageListView.as_view(model=Teaching), name='teaching_index'), url(r'^events/news/$', PageListView.as_view(model=News), name='news_index'), url(r'^events/past/$', PageListView.as_view(model=PastEvent), name='past_event_index'), )
PageDetailView.as_view(model=Story), name='story_detail'), url(r'^news/(?P<pk>\d+)/(?P<slug>[\w-]+)/$', PageDetailView.as_view(model=News), name='news_detail'), url(r'^events/past/(?P<pk>\d+)/(?P<slug>[\w-]+)/$', PageDetailView.as_view(model=PastEvent), name='past_event_detail'), url(r'^maitreya/(?P<pk>\d+)/(?P<slug>[\w-]+)/$', PageDetailView.as_view(model=Maitreya), name='maitreya_detail'), ) urlpatterns += patterns('django.views.generic.list_detail', url(r'^about/$', PageListView.as_view(model=About), name='about_page_index'), url(r'^stories/$', PageListView.as_view(model=Story), name='story_index'), url(r'^maitreya/$', PageListView.as_view(model=Maitreya), name='maitreya_index'), url(r'^news/$', PageListView.as_view(model=News), name='news_index'), url(r'^events/past/$', PageListView.as_view(model=PastEvent), name='past_event_index'), )