bgneal@50: """ bgneal@50: Urls for the videos application. bgneal@50: bgneal@50: """ bgneal@66: from django.conf.urls import patterns, url bgneal@50: from django.views.generic import DetailView, ListView bgneal@50: bgneal@50: from videos.models import Collection bgneal@50: bgneal@50: bgneal@50: urlpatterns = patterns('', bgneal@50: url(r'^$', bgneal@50: ListView.as_view( bgneal@50: model=Collection, bgneal@50: context_object_name='collection_list'), bgneal@50: name='videos-index'), bgneal@50: url(r'^(?P\d+)/$', bgneal@50: DetailView.as_view(model=Collection, context_object_name='collection'), bgneal@50: name='videos-item') bgneal@50: )