-
Notifications
You must be signed in to change notification settings - Fork 10
/
urls.py
40 lines (36 loc) · 1.12 KB
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
"""
Copyright (c) 2008, Myles Braithwaite
All rights reserved.
This software is provided without warranty under the terms of the BSD
license included in photos/LICENSE.markdown and may be redistributed only under
the conditions described in the aforementioned license. This license is also
available online at http://code.google.com/p/django-photo-gallery/wiki/License
Author: Myles Braithwaite
"""
from django.conf.urls.defaults import *
urlpatterns = patterns('',
url(r'^comments/$',
view = 'photos.views.comments.list',
name = 'photo_gallery_comment',
),
url(r'^galleries/$',
view = 'photos.views.gallery.archive',
name = 'photo_gallery_archive',
),
url(r'^(?P<gallery_slug>[-\w]+)/gallery/(?P<photo_slug>[-\w]+)/$',
view = 'photos.views.photo.detail',
name = 'photo_gallery_photo_detail',
),
url(r'^(?P<gallery_slug>[-\w]+)/gallery/$',
view = 'photos.views.gallery.detail',
name = 'photo_gallery_detail',
),
url(r'^(?P<gallery_slug>[-\w]+)/$',
view = 'photos.views.gallery.title',
name = 'photo_gallery_title',
),
url(r'^$',
view = 'photos.views.gallery.index',
name = 'photo_gallery_index',
),
)