Flask config changed

This commit is contained in:
Fr4nz D13trich 2025-10-12 20:14:45 +02:00
parent 368bd1ae9d
commit fe011be589
27 changed files with 311 additions and 4 deletions

View file

@ -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)