def tree_render ( request , upy_context , vars_dictionary ) : page = upy_context [ 'PAGE' ] return render_to_response ( page . template . file_name , vars_dictionary , context_instance = RequestContext ( request ) )
python django render page with param
It renders template defined in upy_context s page passed in arguments
def tree_render(request, upy_context, vars_dictionary):
    """
    It renders template defined in upy_context's page passed in arguments
    """
    page = upy_context['PAGE']
    return render_to_response(page.template.file_name, vars_dictionary, context_instance=RequestContext(request))