How to render html using flask?

All good!
Sorry for the stupid question, but it does not work :(
There's a flask server that is located in /user/server_dir/ and there's a folder that holds the html and css files /usr/other_dir/some_dir/some.html
Using flask as a server /user/server_dir/ render /usr/other_dir/some_dir/some.html ?
PS python 2.7
March 19th 20 at 08:56
2 answers
March 19th 20 at 08:58
Templates are searched relative to the root of the project.
March 19th 20 at 09:00
1. In the directory with the app create the folder templates to put html.
2. In the application(apparently import-module templates: from flask import render_template
3. Next to the root directory of the application create such a function:
def index():
return render_template('index.html')

Find more questions by tags FlaskHTMLPython