#NEWLINE# def page( request , page_to_render ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# p = Page . objects . get ( slug = page_to_render , public = True ) #NEWLINE# #UNINDENT# except Page . DoesNotExist : #NEWLINE# #INDENT# raise http . Http404 ( ( '%s page requested but not found' % page_to_render ) ) #NEWLINE# #UNINDENT# return render_to_response ( 'page.html' , { #NEWLINE# #INDENT# 'request' : request , #NEWLINE# 'page' : p , #NEWLINE# #UNINDENT# } , context_instance = RequestContext ( request ) )