jinja2.exceptions.TemplateNotFound: 500.html flask code example
Example: jinja2.exceptions.templatenotfound: templates/index.html
app = Flask(__name__, template_folder={path of template directory})
app = Flask(__name__, template_folder={path of template directory})