1 from django.conf.urls import url
2 from models import Album
3 from views import AlbumListView, PhotoListView, PhotoView
6 url(r'^$', AlbumListView.as_view()),
7 url(r'^(?P<slug>[^/]*)/$', PhotoListView.as_view()),
8 url(r'^(?P<slug>[^/]*)/(?P<id>[0-9]+)/$', PhotoView.as_view()),