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



urlpatterns = patterns('',
    (r'(?P<slug>[-\w]+)/(?P<page>\d+)/$', 'photos.views.gallery_list_by_area'),
    (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/'}),
)