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__)
|
||||
|
||||
@@ -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,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">
|
||||
|
||||
Reference in New Issue
Block a user