summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2012-11-23 16:31:12 -0500
committerluxagraf <sng@luxagraf.net>2012-11-23 16:31:12 -0500
commit841e67b79e3b91eac544a7fc85b76297ce3d8925 (patch)
tree9be3f85ef5aeb3a67872664ec370ab812fda71f8 /app
parent400aecf5193d5ae5fa85300b0f7c1942103457b9 (diff)
tweaked template for baby videos page
Diffstat (limited to 'app')
-rw-r--r--app/pages/views.py13
1 files changed, 13 insertions, 0 deletions
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))
+
+