From ad3db6afcf4d170f349cdd538c7801930ae5910b Mon Sep 17 00:00:00 2001 From: Hell13Cat <46496367+Hell13Cat@users.noreply.github.com> Date: Wed, 29 Dec 2021 00:31:58 +0300 Subject: [PATCH] build0006 --- server.py | 8 +++++--- templates/index.html | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/server.py b/server.py index d132fe8..d3ce363 100644 --- a/server.py +++ b/server.py @@ -9,6 +9,8 @@ app = Flask(__name__) def hello(): return render_template('index.html') -@app.route('/static/') -def static(file_name): - return send_from_directory(os.getcwd()+"/static/"+file_name, file_name) \ No newline at end of file +@app.route('/statics/') +def statics(file_name): + return send_from_directory(os.getcwd()+"/static", file_name) + +app.run(host="localhost", port=9283) \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index 368da07..b1d56b4 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,7 +1,7 @@ Nyako Page - +