blob: b53b34358b08102edd2ff85e1950b0ac320fcb1d (
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'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/'}),
)
|