Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

how to open an index.html file in flask

from flask import Flask, render_template
app = Flask(__name__)

@app.route('/')
def home():
   return render_template('home.html')
if __name__ == '__main__':
   app.run(
 
PREVIOUS NEXT
Tagged: #open #file #flask
ADD COMMENT
Topic
Name
9+1 =