Black Lives Matter. Please consider donating to Black Girls Code today.
Dash HoloViews is now available! Check out the docs.

Dash cgi deployment issue

I have the following as my app. I am served the content if I comment off the line marked ->>> below. If I uncomment, then the server errors out. I am yet to get the error message from the server folks. I wanted to ask this question here in case someone has already seen this issue. I will update soon.

from flask import Flask, render_template
import dash
server = Flask(name)
->>> app = dash.Dash(name, server = server)

def home():
return render_template(‘home.html’)

import os
import sys

from wsgiref.handlers import CGIHandler
from testapp import server


Folks. It looks like dcc.location + are the way to go. I use the app.server only for deploying app. Not using flask @app.route. This solved the issue. An explanation on why flask app.route does not work would help though.

1 Like