Answers for "flask define template folder"

1

flask define template folder

import os
from flask import Flask

template_dir = os.path.abspath('../../frontend/src')
app = Flask(__name__, template_folder=template_dir)
Posted by: Guest on July-11-2021

Python Answers by Framework

Browse Popular Code Answers by Language