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 e25802b..90db6ba 100644
--- a/app/projects/views.py
+++ b/app/projects/views.py
@@ -10,7 +10,7 @@ from projects.models.base import Project
from projects.models.fiveby import FiveBy
from projects.models.natparks import NationalParks
from projects.models.gifs import AnimatedGif
-
+from projects.models.code import CodeBlogEntry
projects = {'5x5':'FiveBy','6x6':'SixBy','national-parks':'NationalParks','code':'Code'}
"""
@@ -30,6 +30,11 @@ 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 code_entry_detail(request, year, month, day, slug):
+ obj = get_object_or_404(CodeBlogEntry, slug__exact=slug)
+ return render_to_response('details/code_blog.html', {'object': obj}, context_instance=RequestContext(request))
+
+
def data_json(request, id):
qs = NationalParks.objects.filter(pk=id)