Working with Python Dash and have it working from local host, but when attempt to deploy to my python app server, I have issues when deploying to Azure Python Web App.
When I keep the app as just Flask it works with this code:
from flask import Flask
import dash
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello World!"
When I try to pass the server to the Dash instance (when according to Dash docs is acceptable, I receive the error). Here is the code
from flask import Flask
import dash
server = Flask(__name__)
app = dash.Dash(__name__, server=server)
@app.route("/")
def hello():
return "Hello World!"
I receiving the error:
AttributeError: 'Dash' object has no attribute 'route'