Skip to content

Commit 081379b

Browse files
committed
Refactor.
1 parent 31291a3 commit 081379b

File tree

20 files changed

+55
-88
lines changed

20 files changed

+55
-88
lines changed

Pipfile.lock

Lines changed: 17 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plotlydash_flask_tutorial/__init__.py renamed to plotlyflask_tutorial/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from flask_assets import Environment
44

55

6-
def create_app():
6+
def init_app():
77
"""Construct core Flask application with embedded Dash app."""
88
app = Flask(__name__, instance_relative_config=False)
99
app.config.from_object('config.Config')
@@ -16,8 +16,8 @@ def create_app():
1616
from .assets import compile_static_assets
1717

1818
# Import Dash application
19-
from .plotlydash.dashboard import create_dashboard
20-
app = create_dashboard(app)
19+
from .plotlydash.dashboard import init_dashboard
20+
app = init_dashboard(app)
2121

2222
# Compile static assets
2323
compile_static_assets(assets)
File renamed without changes.

plotlydash_flask_tutorial/plotlydash/dashboard.py renamed to plotlyflask_tutorial/plotlydash/dashboard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from .layout import html_layout
1010

1111

12-
def create_dashboard(server):
12+
def init_dashboard(server):
1313
"""Create a Plotly Dash dashboard."""
1414
dash_app = dash.Dash(
1515
server=server,
File renamed without changes.

plotlydash_flask_tutorial/static/dist/css/styles.css renamed to plotlyflask_tutorial/static/dist/css/styles.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)