summaryrefslogtreecommitdiff
path: root/apps/photos/detail_urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'apps/photos/detail_urls.py')
-rw-r--r--apps/photos/detail_urls.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/photos/detail_urls.py b/apps/photos/detail_urls.py
new file mode 100644
index 0000000..9ff9b84
--- /dev/null
+++ b/apps/photos/detail_urls.py
@@ -0,0 +1,10 @@
+from django.conf.urls.defaults import *
+from photos.models import Photo
+
+detail_dict = {
+ 'queryset': Photo.objects.all(),
+}
+
+urlpatterns = patterns('django.views.generic.list_detail',
+ (r'^(?P<object_id>\d+)/$', 'object_detail', dict(detail_dict, template_name='details/photo.html')),
+)