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_assets import Bundle, Environment
|
||||
|
||||
from todo import todos
|
||||
from boards import board_list
|
||||
|
||||
import socket
|
||||
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
assets = Environment(app)
|
||||
@ -33,7 +35,9 @@ def healthz():
|
||||
|
||||
@app.route("/")
|
||||
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
|
||||
|
@ -2,6 +2,8 @@
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="host-id">Вас закинуло сюда: {{host_id}}</div>
|
||||
|
||||
<div class="content">
|
||||
Dobro pozhalovat. AGAIN.
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user