diff options
Diffstat (limited to 'app/photos/detail_urls.py')
-rw-r--r-- | app/photos/detail_urls.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/app/photos/detail_urls.py b/app/photos/detail_urls.py index 8bdbd79..0ab94f6 100644 --- a/app/photos/detail_urls.py +++ b/app/photos/detail_urls.py @@ -1,7 +1,10 @@ -from django.conf.urls import * +from django.conf.urls import url from django.views.generic.detail import DetailView from photos.models import Photo -urlpatterns = patterns('', - (r'^(?P<object_id>\d+)/$', DetailView.as_view(model=Photo, template_name='details/photo.html')), -) +urlpatterns = [ + url( + r'^(?P<object_id>\d+)/$', + DetailView.as_view(model=Photo, template_name='details/photo.html') + ), +] |