Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 3 additions & 1 deletion django_plotly_dash/finders.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import importlib

from collections import OrderedDict
from pathlib import Path

from django.contrib.staticfiles.finders import BaseFinder
from django.contrib.staticfiles.utils import get_files
Expand Down Expand Up @@ -132,7 +133,8 @@ def find(self, path, find_all=False, all=False):
storage = self.storages[component_name]
location = storage.location # dir on disc

component_path = "dash/component/%s" % component_name
component_path = str(Path("dash/component/%s" % component_name))

if (
len(path) > len(component_path)
and path[: len(component_path)] == component_path
Expand Down
2 changes: 1 addition & 1 deletion django_plotly_dash/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@

'''

__version__ = "2.4.5"
__version__ = "2.4.6"