By default, Flask looks in the templates folder in the root level of your app.
http://flask.pocoo.org/docs/0.10/api/
template_folder – the folder that contains the templates that should
be used by the application. Defaults to ‘templates’ folder in the root
path of the application.
So you have some options,
- rename
templatetotemplates -
supply a
template_folderparam to have yourtemplatefolder recognised by the flask app:app = Flask(__name__, template_folder="template")