changes implementing flask
This commit is contained in:
parent
30c4c40494
commit
d3be1e2984
2 changed files with 5 additions and 6 deletions
5
lomes-app.py
Normal file → Executable file
5
lomes-app.py
Normal file → Executable file
|
|
@ -2,12 +2,11 @@
|
||||||
|
|
||||||
from flask import Flask, render_template
|
from flask import Flask, render_template
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__, static_folder="static")
|
||||||
|
|
||||||
@app.route("/")
|
@app.route("/")
|
||||||
def index():
|
def index():
|
||||||
#return render_template("index.html")
|
return render_template("index.html")
|
||||||
return "TEST"
|
|
||||||
|
|
||||||
|
|
||||||
app.run(host="127.0.0.1", port=5000)
|
app.run(host="127.0.0.1", port=5000)
|
||||||
|
|
|
||||||
|
|
@ -4,13 +4,13 @@
|
||||||
<meta name="viewport" content="width=device-width" initial-scale="1.0">
|
<meta name="viewport" content="width=device-width" initial-scale="1.0">
|
||||||
|
|
||||||
<title>LoMeS | Meshtastic</title>
|
<title>LoMeS | Meshtastic</title>
|
||||||
<link rel="icon" href="{{ url_for('static', filename='static/data/images/lomes.svg') }}">
|
<link rel="icon" href="data/images/favicon.ico">
|
||||||
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
<link rel="stylesheet" href="style.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<section>
|
<section>
|
||||||
<header>
|
<header>
|
||||||
<img class="icon" src="{{ url_for('static', filename='static/data/images/lomes.svg') }}">
|
<img class="icon" src="data/images/lomes.svg">
|
||||||
<h1>Welcome to LoMeS</h1>
|
<h1>Welcome to LoMeS</h1>
|
||||||
</header>
|
</header>
|
||||||
<div class="textBox">
|
<div class="textBox">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue