Skip to content

Commit 52cd9f7

Browse files
committed
refactor
1 parent 3f5d1c2 commit 52cd9f7

File tree

8 files changed

+43
-35
lines changed

8 files changed

+43
-35
lines changed

Dash_App/dash_view.py renamed to Dash_App/dash_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
def Add_Dash(server):
1313
"""Create a Dash app."""
14-
external_stylesheets = ['/static/dist/css/plotly-flask-tutorial.css',
14+
external_stylesheets = ['/static/dist/css/styles.css',
1515
'https://fonts.googleapis.com/css?family=Lato',
1616
'https://use.fontawesome.com/releases/v5.8.1/css/all.css']
1717
external_scripts = ['/static/dist/js/includes/jquery.min.js',

Pipfile.lock

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

application/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ def create_app():
1111

1212
# Construct the data set
1313
from . import routes
14-
from Dash_App import dash_view
15-
app = dash_view.Add_Dash(app)
14+
from Dash_App import dash_example
15+
app = dash_example.Add_Dash(app)
1616
app.register_blueprint(routes.main_bp)
1717

1818
return app

application/routes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
Environment.debug = False
1313
less_bundle = Bundle('less/*.less',
1414
filters='less,cssmin',
15-
output='dist/css/plotly-flask-tutorial.css',
15+
output='dist/css/styles.css',
1616
extra={'rel': 'stylesheet/less'})
1717
js_bundle = Bundle('js/*.js',
1818
filters='jsmin',
5.79 KB
Loading

application/templates/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<meta name="HandheldFriendly" content="True" />
88
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
99
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">
10-
<link rel="stylesheet" href="{{ url_for('static', filename='dist/css/plotly-flask-tutorial.css') }}">
10+
<link rel="stylesheet" href="{{ url_for('static', filename='dist/css/styles.css') }}">
1111
<link rel="shortcut icon" href="{{ url_for('static', filename='dist/img/favicon.png') }}" type="image/x-icon" />
1212
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous">
1313
</head>

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ plotly==3.9.0
2929
ply==3.11
3030
pyrsistent==0.15.1
3131
python-dateutil==2.8.0
32+
python-dotenv==0.10.1
3233
pytz==2019.1
3334
requests==2.21.0
3435
retrying==1.3.3

0 commit comments

Comments
 (0)