plesna/dashboard/pages/config.py

18 lines
318 B
Python
Raw Normal View History

2024-07-27 13:55:20 +00:00
import dash
from dash import html
from dotenv import dotenv_values
import os
env = {
**dotenv_values(".env"),
**os.environ,
}
dash.register_page(__name__, path='/config')
layout = html.Div([
html.H1('This is our Config page'),
html.Ul(children = [html.Li(f"{k} = {v}") for k,v in env.items()]),
])