build0006

This commit is contained in:
Hell13Cat
2021-12-29 00:31:58 +03:00
parent 58cbbd4884
commit ad3db6afcf
2 changed files with 7 additions and 5 deletions
+5 -3
View File
@@ -9,6 +9,8 @@ app = Flask(__name__)
def hello():
return render_template('index.html')
@app.route('/static/<str:file_name>')
def static(file_name):
return send_from_directory(os.getcwd()+"/static/"+file_name, file_name)
@app.route('/statics/<string:file_name>')
def statics(file_name):
return send_from_directory(os.getcwd()+"/static", file_name)
app.run(host="localhost", port=9283)
+2 -2
View File
@@ -1,7 +1,7 @@
<html>
<head>
<title>Nyako Page</title>
<link rel="stylesheet" href="./static/style.css">
<link rel="stylesheet" href="/statics/style.css">
<meta name="viewport" content="width=device-width">
<!--
<meta name="viewport" content="height=device-height">
@@ -10,7 +10,7 @@
</head>
<body>
<div id="maindiv">
<img src="./static/head2.png" alt="Head Image">
<img src="/statics/head2.png" alt="Head Image">
<div id="bodydiv">
<div class="titlediv">
<h1><code>Local Search Engine</code></h1>