I have a Flask application that calls flask.render_template without problems when it is invoked from a flask http request.
flask.render_template
http request
I need the same
What I use is this code:
import jinja2 template_values = { 'value_name_in_html': value_name_in_python, } template = JINJA_ENVIRONMENT.get_template("file_patch") self.response.write(template.render(template_values))