summaryrefslogtreecommitdiff
path: root/app/photos/urls.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2012-09-22 22:27:04 -0400
committerluxagraf <sng@luxagraf.net>2012-09-22 22:27:04 -0400
commitefb623af0bcb47d510501c282e1326b11343a29c (patch)
tree3a35fb19f5eba3b219c65277a5fb712cbe9604ac /app/photos/urls.py
parent0b481fd7931c2ae20ca21f89a87f2ba6a6c01e10 (diff)
site reorg
Diffstat (limited to 'app/photos/urls.py')
-rw-r--r--app/photos/urls.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/photos/urls.py b/app/photos/urls.py
new file mode 100644
index 0000000..d917d85
--- /dev/null
+++ b/app/photos/urls.py
@@ -0,0 +1,13 @@
+from django.conf.urls.defaults import *
+from django.views.generic import list_detail
+from django.views.generic.simple import redirect_to
+
+
+
+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]+)/$', redirect_to, {'url': '/photos/%(slug)s/1/'}),
+ (r'', redirect_to, {'url': '/photos/1/'}),
+) \ No newline at end of file