from django.conf.urls import patterns, url

from . import views

urlpatterns = patterns(
    '',
    url(r'^videos/$',
        views.YoutubeVideoListView.as_view(), name="youtube-list-view"),
    url(r'^galleries/$',
        views.FlickrAlbumListView.as_view(), name="flickr-list-view"),
    url(r'^press/$',
        views.PressListView.as_view(), name="press-list-view"),
    url(r'^tags/$',
        views.TagListView.as_view(), name='tag-list-view'),

    url(r'^videos/(?P<slug>[-_\w]+)/$',
        views.YoutubeEntryDetailView .as_view(), name='youtube-detail-view'),
    url(r'^galleries/(?P<slug>[-_\w]+)/$',
        views.FlickAlbumDetailView .as_view(), name='flickr-detail-view'),
    url(r'^press/(?P<slug>[-_\w]+)/$',
        views.PressDetailView .as_view(), name='press-detail-view'),
    url(r'^tags/(?P<slug>[-_\w]+)/$',
        views.TagDetailView.as_view(), name='tag-detail-view'),
)
