Flask config changed
This commit is contained in:
parent
368bd1ae9d
commit
fe011be589
27 changed files with 311 additions and 4 deletions
|
|
@ -2,12 +2,11 @@
|
|||
|
||||
from flask import Flask, render_template
|
||||
|
||||
app = Flask(__name__)
|
||||
app = Flask(__name__, static_folder="/var/www/html", static_url_path="/var/www/html", send_from_directory("data/images, lomes.svg"))
|
||||
|
||||
@app.route("/")
|
||||
def index():
|
||||
return "with Flask"
|
||||
return render_template("/var/www/html/index.html")
|
||||
return app.send_static_file("index.html")
|
||||
|
||||
|
||||
app.run(host="0.0.0.0", port=5000)
|
||||
app.run(host="127.0.0.1", port=5000)
|
||||
Loading…
Add table
Add a link
Reference in a new issue