build0006
This commit is contained in:
@@ -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)
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user