summaryrefslogtreecommitdiff
path: root/app/photos/urls.py
blob: 9ae065db2e2920d530c6daebfad2827e84750af6 (plain)
1
2
3
4
5
6
7
8
9
10
11
from django.conf.urls import *
from django.views.generic.base import RedirectView


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]+)/$', RedirectView.as_view(url="/photos/%(slug)s/1/")),
    (r'', RedirectView.as_view(url="/photos/1/")),
)