Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to change templates folder in flask

app = Flask(__name__, template_folder='/content/gdrive/MyDrive/test')

@app.route('/')
def home():
  return render_template('test.html')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #change #templates #folder #flask
ADD COMMENT
Topic
Name
7+6 =