I have created a sample dash application that works fine from the command line and from //localhost:8050.
However when I try to run it from IIS the following is displayed:
the tab changes to the word “Dash” and the text “Loading…” is displayed. It looks like the application starts but never finishes.
What am I missing?
my app.py file is below
import dash
import dash_core_components as dcc
import dash_html_components as html
from flask import Flask
server = Flask(name)
app = dash.Dash(name,server=server)
#server = app.server
app.config[‘suppress_callback_exceptions’]=True
app.layout = html.Div(children=[
html.H1(children=‘Hello Dash’),
html.Div(children='''
Dash: A web application framework for Python.
'''),
dcc.Graph(
id='example-graph',
figure={
'data': [
{'x': [1, 2, 3], 'y': [4, 1, 2], 'type': 'bar', 'name': 'SF'},
{'x': [1, 2, 3], 'y': [2, 4, 5], 'type': 'bar', 'name': 'Montreal'},
],
'layout': {
'title': 'Dash Data Visualization'
}
}
)
])
if name == ‘main’:
app.run_server(debug=False)
This code works fine from the command line.
the web.config file looks like this:
<?xml version="1.0" encoding="UTF-8"?><!-- Optional settings -->
<add key="WSGI_LOG" value="C:\dev\Fast\logs\Fast.log" />
<add key="WSGI_RESTART_FILE_REGEX" value=".*((\.py)|(\.config))$" />
</appSettings>