#NEWLINE# def render( template_path , template_dict , debug = False ) : #NEWLINE# #INDENT# 'Renders the template at the given path with the given dict of values.\n\n  Example usage:\n    render("templates/index.html", {"name": "Bret", "values": [1, 2, 3]})\n\n  Args:\n    template_path: path to a Django template\n    template_dict: dictionary of values to apply to the template\n\n  Returns:\n    The rendered template as a string.\n  ' #NEWLINE# if ( os . environ . get ( 'APPENGINE_RUNTIME' ) == 'python27' ) : #NEWLINE# #INDENT# warnings . warn ( _PYTHON27_DEPRECATION , DeprecationWarning , stacklevel = 2 ) #NEWLINE# t = _load_internal_django ( template_path , debug ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# t = _load_user_django ( template_path , debug ) #NEWLINE# #UNINDENT# return t . render ( Context ( debug ) )