Match template exactly: remove sys.path, add explicit template/static folders

This commit is contained in:
2026-07-23 11:22:35 +04:00
parent 46517abf3f
commit 5c16e75b0a
+2 -8
View File
@@ -1,12 +1,6 @@
"""Точка входа — минимальное приложение."""
import os
import sys
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
from flask import Flask, render_template from flask import Flask, render_template
app = Flask(__name__) app = Flask(__name__, template_folder="templates", static_folder="static")
@app.route("/") @app.route("/")
@@ -15,4 +9,4 @@ def index():
if __name__ == "__main__": if __name__ == "__main__":
app.run(host="0.0.0.0", port=5000) app.run(debug=True, host="0.0.0.0", port=5000)