From 741cea88d882d8ac185121141ef49815835ad8a7 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Wed, 2 Dec 2015 13:03:21 -0500 Subject: updated url schemes to quiet some django 1.10 warnings --- app/photos/detail_urls.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'app/photos/detail_urls.py') 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\d+)/$', DetailView.as_view(model=Photo, template_name='details/photo.html')), -) +urlpatterns = [ + url( + r'^(?P\d+)/$', + DetailView.as_view(model=Photo, template_name='details/photo.html') + ), +] -- cgit v1.2.3-70-g09d2