it/itf/pages/views.py

10 lines
356 B
Python
Raw Normal View History

2011-12-27 13:05:42 +00:00
# Create your views here.
from django.shortcuts import render_to_response, get_object_or_404
from models import Page
from django.template import RequestContext
def render_page(request, slug):
page = get_object_or_404(Page, slug=slug)
context = RequestContext(request, {'page': page})
return render_to_response("noel/staticpage.html", context)