dash-django-example
dash-django-example copied to clipboard
AttributeError: 'Dash' object has no attribute 'url_base_pathname'
I've cloned your repo (Thx for that :-)) and tried to run it inside my Python 3.8.2 environment.
Given result:
dash_test\viz\router.py", line 14, in <dictcomp>
routes = {f"{app.url_base_pathname}{path}": layout for path, layout in pages}
AttributeError: 'Dash' object has no attribute 'url_base_pathname'
- router.py line 14:
routes = {f"{app.url_base_pathname}{path}": layout for path, layout in pages}
Expected result
It's possible to start the app with using `manage.py runserver' without any error.
I didn't found the reason and am so far unable to fix it - could you give me a hint?
Please try changing 'app.url_base_pathname' for 'app.config.url_base_pathname'