This commit is contained in:
parent
10ebc6d628
commit
1cc624c4c8
8
app.py
8
app.py
@ -1,9 +1,11 @@
|
|||||||
from flask import Flask, render_template, request
|
from flask import Flask, render_template, request
|
||||||
from flask_assets import Bundle, Environment
|
from flask_assets import Bundle, Environment
|
||||||
|
|
||||||
from todo import todos
|
from todo import todos
|
||||||
from boards import board_list
|
from boards import board_list
|
||||||
|
|
||||||
|
import socket
|
||||||
|
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
|
||||||
assets = Environment(app)
|
assets = Environment(app)
|
||||||
@ -33,7 +35,9 @@ def healthz():
|
|||||||
|
|
||||||
@app.route("/")
|
@app.route("/")
|
||||||
def homepage():
|
def homepage():
|
||||||
return render_template("main-page.html", boards=board_list)
|
|
||||||
|
docker_short_id = socket.gethostname()
|
||||||
|
return render_template("main-page.html", host_id=docker_short_id, boards=board_list)
|
||||||
|
|
||||||
|
|
||||||
### stolen
|
### stolen
|
||||||
|
@ -2,8 +2,10 @@
|
|||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
|
<div class="host-id">Вас закинуло сюда: {{host_id}}</div>
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
Dobro pozhalovat. AGAIN.
|
Dobro pozhalovat. AGAIN.
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
|
Loading…
Reference in New Issue
Block a user