-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp.py
49 lines (36 loc) · 790 Bytes
/
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
"""
Dash App
"""
import dash
from dash import Dash, html
import config
from pages.templates.base import build_banner
# Create Dash App
app = Dash(name='Insider Trades Tracker',
use_pages=True)
# Define Server
server = app.server
# Define App Title
app.title = 'Tracker'
# Define App Layout
app.layout = html.Div(
id="big-app-container",
children=[
# Website Metadata
html.Title('Tracker',
id='title'),
# Header data
build_banner(),
# Pages Content
dash.page_container,
],
style={'padding': 10},
)
# Run App
if __name__ == '__main__':
# Development
if config.DEPLOYMENT == 'D':
app.run_server(debug=True)
# Production
else:
app.run_server(debug=False)