diff --git a/django_plotly_dash/finders.py b/django_plotly_dash/finders.py index 2c23a911..21db26aa 100644 --- a/django_plotly_dash/finders.py +++ b/django_plotly_dash/finders.py @@ -50,7 +50,12 @@ def __init__(self): self.ignore_patterns = ["*.py", "*.pyc",] - for component_name in settings.PLOTLY_COMPONENTS: + try: + components = settings.PLOTLY_COMPONENTS + except: + components = [] + + for component_name in components: module = importlib.import_module(component_name) path_directory = os.path.dirname(module.__file__)