summaryrefslogtreecommitdiff
path: root/bak/unused_apps/photos/detail_urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'bak/unused_apps/photos/detail_urls.py')
-rw-r--r--bak/unused_apps/photos/detail_urls.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/bak/unused_apps/photos/detail_urls.py b/bak/unused_apps/photos/detail_urls.py
new file mode 100644
index 0000000..0ab94f6
--- /dev/null
+++ b/bak/unused_apps/photos/detail_urls.py
@@ -0,0 +1,10 @@
+from django.conf.urls import url
+from django.views.generic.detail import DetailView
+from photos.models import Photo
+
+urlpatterns = [
+ url(
+ r'^(?P<object_id>\d+)/$',
+ DetailView.as_view(model=Photo, template_name='details/photo.html')
+ ),
+]