diff options
Diffstat (limited to 'app/photos/detail_urls.py')
-rw-r--r-- | app/photos/detail_urls.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/photos/detail_urls.py b/app/photos/detail_urls.py new file mode 100644 index 0000000..9ff9b84 --- /dev/null +++ b/app/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')), +) |