Skip to content

Cannot create multiple dash apps on the same flask server #89

Closed
@nmiculinic

Description

@nmiculinic
    app = dash.Dash(server=server, url_base_pathname=url_base_pathname, name=__name__)
  File "/home/lpp/Desktop/fino/venv/lib/python3.6/site-packages/dash/dash.py", line 96, in __init__
    view_func=self.serve_layout)
  File "/home/lpp/Desktop/fino/venv/lib/python3.6/site-packages/flask/app.py", line 64, in wrapper_func
    return f(self, *args, **kwargs)
  File "/home/lpp/Desktop/fino/venv/lib/python3.6/site-packages/flask/app.py", line 1051, in add_url_rule
    'existing endpoint function: %s' % endpoint)
AssertionError: View function mapping is overwriting an existing endpoint function: serve_layout

I'd like having multiple dash app in web app, however I'm reaching this exception. I'm making sure they have different url_base_pathname yet it doesn't help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions