I'm currently extending a template ("flask-boilerplate") created by @timmy_i_chen. I'm encountering an issue when trying to use the render_template function. I have a folder called "templates" and inside there is an html file ("index.html"). However when I reference the file using the function call it says that "jinja2.exceptions.TemplateNotFound: index.html". Here is a link https://repl.it/@IslandDeveloper/flask-boilerplate. Thanks for any help you can provide.
Oof. Just add a any empty .py file and it should work. This is an inconsistency caused by our "project mode/eval mode" discrepancies. Sorry for the confusion!
Am having a similar issue, trying to follow http://flask.pocoo.org/docs/1.0/quickstart/#rendering-templates and https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-ii-templates-legacy
Had tried using template_folder='templates' but no joy, but adding root_path='.' from