summaryrefslogtreecommitdiff
path: root/apps/photos/urls.py
blob: d917d856d9292ed061dc7f8f7dbe8bfa3c90ff55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
from django.conf.urls.defaults import *
from django.views.generic import list_detail
from django.views.generic.simple import redirect_to



urlpatterns = patterns('',
    (r'data/(?P<slug>[-\w]+)/$', 'photos.views.photo_json'),
    (r'galleries/(?P<slug>[-\w]+)/$', 'photos.views.gallery'),
    (r'(?P<page>\d+)/$', 'photos.views.gallery_list'),
    (r'(?P<slug>[-\w]+)/$', redirect_to, {'url': '/photos/%(slug)s/1/'}),
    (r'', redirect_to, {'url': '/photos/1/'}),
)