]> git.sommitrealweird.co.uk Git - sommitrealweird.git/blob - sommitrealweird/photo/urls.py
12c8dfbba02250291d6abe4c8bac933af24aaf26
[sommitrealweird.git] / sommitrealweird / photo / urls.py
1 from django.conf.urls.defaults import *
2 from models import Album
3
4 urlpatterns = patterns('',
5     (r'^$', 'django.views.generic.list_detail.object_list', { "paginate_by": 20, "queryset": Album.objects.all().order_by('name').reverse(), "template_name": "photo/album_index.html"}),
6     (r'^(?P<slug>[^/]*)/$', 'photo.views.album_view'),
7     (r'^(?P<slug>[^/]*)/(?P<id>[0-9]+)/$', 'photo.views.photo_view'),
8 )