]> git.sommitrealweird.co.uk Git - sommitrealweird.git/blob - sommitrealweird/photo/urls.py
dbea64f99eca4e3d7560208fba04d33b857e1fbc
[sommitrealweird.git] / sommitrealweird / photo / urls.py
1 from django.conf.urls import url
2 from models import Album
3 from views import AlbumListView
4
5 urlpatterns = [
6     url(r'^$', AlbumListView.as_view()),
7     url(r'^(?P<slug>[^/]*)/$', 'photo.views.album_view'),
8     url(r'^(?P<slug>[^/]*)/(?P<id>[0-9]+)/$', 'photo.views.photo_view'),
9 ]