Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

flask define template folder

import os
from flask import Flask

template_dir = os.path.abspath('../../frontend/src')
app = Flask(__name__, template_folder=template_dir)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #flask #define #template #folder
ADD COMMENT
Topic
Name
7+9 =