From 841e67b79e3b91eac544a7fc85b76297ce3d8925 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Fri, 23 Nov 2012 16:31:12 -0500 Subject: tweaked template for baby videos page --- app/pages/views.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 app/pages/views.py (limited to 'app/pages/views.py') diff --git a/app/pages/views.py b/app/pages/views.py new file mode 100644 index 0000000..a568f3b --- /dev/null +++ b/app/pages/views.py @@ -0,0 +1,13 @@ +from django.shortcuts import render_to_response,get_object_or_404 +from django.template import RequestContext +from django.conf import settings + + +from pages.models import Page + +def page(request,slug): + obj = get_object_or_404(Page, slug__exact=slug) + context = { 'object': obj,} + return render_to_response(["details/%s.html" % obj.slug, 'details/page.html'], context, context_instance = RequestContext(request)) + + -- cgit v1.2.3-70-g09d2