flask define template folder

Solutions on MaxInterview for flask define template folder by the best coders in the world

showing results for - "flask define template folder"
Iyed
24 Nov 2018
1import os
2from flask import Flask
3
4template_dir = os.path.abspath('../../frontend/src')
5app = Flask(__name__, template_folder=template_dir)
6