def jinja2(self):
    return jinja2.get_jinja2(factory=jinja2_factory)

def render_response(self, _template, **context):
    rv = self.jinja2.render_template(_template, **context)
self.response.write(rv)
webapp2 + jinja2: How can i get uri_for() working in jinja2-views