Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions django_plotly_dash/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
from django.conf import settings

def _get_settings():
pd_settings = settings.PLOTLY_DASH
return pd_settings if pd_settings else {}
try:
return settings.PLOTLY_DASH
except AttributeError:
return {}

def pipe_ws_endpoint_name():
'Return the endpoint for pipe websocket connections'
Expand Down