build0005

This commit is contained in:
Hell13Cat
2021-12-29 00:23:24 +03:00
parent f2acdc4140
commit 58cbbd4884
2 changed files with 7 additions and 5 deletions
+6 -4
View File
@@ -1,4 +1,6 @@
from flask import Flask, render_template
from flask import Flask, render_template, send_from_directory
import os
import main
app = Flask(__name__)
@@ -7,6 +9,6 @@ app = Flask(__name__)
def hello():
return render_template('index.html')
@app.route('/static')
def hello():
return 'Hello, World!'
@app.route('/static/<str:file_name>')
def static(file_name):
return send_from_directory(os.getcwd()+"/static/"+file_name, file_name)
+1 -1
View File
@@ -1,7 +1,7 @@
<html>
<head>
<title>Nyako Page</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="./static/style.css">
<meta name="viewport" content="width=device-width">
<!--
<meta name="viewport" content="height=device-height">