build0005
This commit is contained in:
@@ -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__)
|
app = Flask(__name__)
|
||||||
|
|
||||||
@@ -7,6 +9,6 @@ app = Flask(__name__)
|
|||||||
def hello():
|
def hello():
|
||||||
return render_template('index.html')
|
return render_template('index.html')
|
||||||
|
|
||||||
@app.route('/static')
|
@app.route('/static/<str:file_name>')
|
||||||
def hello():
|
def static(file_name):
|
||||||
return 'Hello, World!'
|
return send_from_directory(os.getcwd()+"/static/"+file_name, file_name)
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Nyako Page</title>
|
<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="width=device-width">
|
||||||
<!--
|
<!--
|
||||||
<meta name="viewport" content="height=device-height">
|
<meta name="viewport" content="height=device-height">
|
||||||
|
|||||||
Reference in New Issue
Block a user