diff options
author | luxagraf <sng@luxagraf.net> | 2012-11-23 16:31:12 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2012-11-23 16:31:12 -0500 |
commit | 841e67b79e3b91eac544a7fc85b76297ce3d8925 (patch) | |
tree | 9be3f85ef5aeb3a67872664ec370ab812fda71f8 /app/pages/views.py | |
parent | 400aecf5193d5ae5fa85300b0f7c1942103457b9 (diff) |
tweaked template for baby videos page
Diffstat (limited to 'app/pages/views.py')
-rw-r--r-- | app/pages/views.py | 13 |
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)) + + |