summaryrefslogtreecommitdiff
path: root/app/photos/urls.py
blob: 91aac41be2d127675444e7b05d4f948709959a42 (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/", permanent=False)),
    (r'', RedirectView.as_view(url="/photos/1/", permanent=False)),
)