how to change templates folder in flask

51

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

@app.route('/')
def home():
  return render_template('test.html')

Comments

Submit
0 Comments