dash-django-example icon indicating copy to clipboard operation
dash-django-example copied to clipboard

AttributeError: 'Dash' object has no attribute 'url_base_pathname'

Open squeezer44 opened this issue 5 years ago • 1 comments

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?

squeezer44 avatar Nov 23 '20 20:11 squeezer44

Please try changing 'app.url_base_pathname' for 'app.config.url_base_pathname'

chanchiste avatar Feb 17 '21 13:02 chanchiste