def page_content(request): return {'page_content': PageContent.get_content(request.path)}
def redirect_to_page(request): page_content = PageContent.get_content(request.path) return HttpResponseRedirect(page_content.page.url)