several changes implementing flask
This commit is contained in:
parent
b72fce9038
commit
294f8b84ab
6 changed files with 41 additions and 7 deletions
|
|
@ -6,8 +6,7 @@ app = Flask(__name__)
|
|||
|
||||
@app.route("/")
|
||||
def index():
|
||||
return "with Flask"
|
||||
return render_template("/var/www/html/index.html")
|
||||
return render_template("index.html")
|
||||
|
||||
|
||||
app.run(host="127.0.0.1", port=5000)
|
||||
Loading…
Add table
Add a link
Reference in a new issue