-2
I am rendering an html report using the Flask render_template. By default render_template renders what is in the template folder, however, I need to change to make the directory another. I tried to force a default directory but did not succeed.
from flask import Blueprint, request, jsonify, send_from_directory, render_template, Flask
admin = Blueprint('admin', __name__, template_folder='././production/fiscal/relatorios')
return render_template(apuracao.html)
File name should be in quotes.
– tomasantunes