summaryrefslogtreecommitdiff
path: root/app/projects/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/projects/views.py')
-rw-r--r--app/projects/views.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/projects/views.py b/app/projects/views.py
index 64857a7..e25802b 100644
--- a/app/projects/views.py
+++ b/app/projects/views.py
@@ -9,6 +9,7 @@ from projects.shortcuts import render_to_geojson
from projects.models.base import Project
from projects.models.fiveby import FiveBy
from projects.models.natparks import NationalParks
+from projects.models.gifs import AnimatedGif
projects = {'5x5':'FiveBy','6x6':'SixBy','national-parks':'NationalParks','code':'Code'}
@@ -25,6 +26,10 @@ def detail(request,slug):
template = 'details/%s.html' %(slug)
return object_list(request, queryset=qs, template_name=template,)
+def gif_detail(request,slug):
+ obj = get_object_or_404(AnimatedGif, slug__exact=slug)
+ return render_to_response('details/gifs.html', {'object': obj}, context_instance=RequestContext(request))
+
def data_json(request, id):
qs = NationalParks.objects.filter(pk=id)
@@ -35,4 +40,4 @@ def data_json(request, id):
mimetype = 'application/json',
pretty_print=True
)
- \ No newline at end of file
+