diff options
author | luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f <luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f> | 2009-01-05 04:07:10 +0000 |
---|---|---|
committer | luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f <luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f> | 2009-01-05 04:07:10 +0000 |
commit | 637d71d2c3a7c1c65a931e1eb094052a095cdf05 (patch) | |
tree | ca34a2fead939b133143ec7647a9437d52c89075 /apps/photos/detail_urls.py |
have at it
Diffstat (limited to 'apps/photos/detail_urls.py')
-rw-r--r-- | apps/photos/detail_urls.py | 10 |
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')), +) |