summaryrefslogtreecommitdiff
path: root/app/pages/views.py
blob: cb605ab62ad8ad8685d42d6a193bc0cc0de760a5 (plain)
1
2
3
4
5
6
7
8
9
10
from django.shortcuts import render_to_response, get_object_or_404
from django.template import RequestContext
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))
'''