Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
nmiculinic opened this issue Jul 18, 2017 · 2 comments
Closed

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

nmiculinic opened this issue Jul 18, 2017 · 2 comments

Comments

@nmiculinic
Copy link

    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.

@rc1405
Copy link

rc1405 commented Jul 18, 2017

That was the same error that led me to write #70, I would guess they you don't have those updates based on the exception.

@nmiculinic
Copy link
Author

You're right, I don't. I tried latest master version and it works, but isn't yet pushed onto PyPI

HammadTheOne pushed a commit to HammadTheOne/dash that referenced this issue May 28, 2021
HammadTheOne pushed a commit to HammadTheOne/dash that referenced this issue May 28, 2021
* add back support for column options and dropdown_properties

* fix lint
HammadTheOne pushed a commit that referenced this issue Jul 23, 2021
* add back support for column options and dropdown_properties

* fix lint
HammadTheOne pushed a commit that referenced this issue Jul 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants