question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AttributeError: 'DjangoDash' object has no attribute 'config'

See original GitHub issue

Hello,

I am trying to assign a callback to a component that is generated by other callbacks (and therefore not in the initial layout).

As explained in Dash documentation, I try to suppress the exception: app.config.suppress_callback_exceptions = True

But then get: AttributeError: ‘DjangoDash’ object has no attribute ‘config’

Any ideas how to fix this?

Thanks!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
apiljiccommented, Apr 19, 2021

Hi. I am no longer using such a setup, but when I faced the issue of AttributeError: ‘DjangoDash’ object has no attribute ‘config’, then the solution was to do something like described in the issue I cited:

dashapp = DjangoDash(name='my_dash_app',
serve_locally=False,
expanded_callbacks=True,
add_bootstrap_links=False,
suppress_callback_exceptions = True,
routes_pathname_prefix='/dashapp/'
)

Adding suppress_callback_exceptions = True should fix the error. I hope this helped.

0reactions
vinodagoudacommented, Apr 21, 2021

@apiljic Thanks for your time for answering this. Will try to use this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to save huge data by session in server with ...
But AttributeError was raised when I tried to integrate the Dash-app with ... AttributeError: 'DjangoDash' object has no attribute 'server'.
Read more >
Python Dash: 'Dash' object has no attribute 'route'
The docs don't say what you think they do. app is the Dash instance, not the Flask one - that is available via...
Read more >
django-dash Documentation - Read the Docs
Add dash to INSTALLED_APPS of the your projects' Django settings. ... e = AttributeError(“'module' object has no attribute ...
Read more >
Object has no attribute 'object' : r/django - Reddit
AttributeError at /recipebook/addrecipe 'addrecipe' object has no ... You'd have to define it in the class in the dispatch or setup method.
Read more >
Overcome the error: AttributeError: 'Settings' object has no ...
Overcome the error: AttributeError: 'Settings' object has no attribute 'PLUGINS_REPO_ID' · Admin Talk · cdb January 20, 2022, 9:26am #1. Hey everybody,.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found