Skip to content

Commit

Permalink
bokehjsdir() has been deprecated in favor of bokehjs_path()
Browse files Browse the repository at this point in the history
  • Loading branch information
tbg committed Mar 20, 2024
1 parent 56ea3da commit 395bbe4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tethys_portal/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
from tethys_portal.optional_dependencies import optional_import, has_module

# optional imports
bokeh_settings, bokehjsdir = optional_import(
("settings", "bokehjsdir"), from_module="bokeh.settings"
bokeh_settings, bokehjs_path = optional_import(
("settings", "bokehjs_path"), from_module="bokeh.settings"
)
bokeh_django = optional_import("bokeh_django")

Expand Down Expand Up @@ -407,8 +407,8 @@
STATICFILES_DIRS = [
BASE_DIR / "static",
]
if has_module(bokehjsdir):
STATICFILES_DIRS.append(bokehjsdir())
if has_module(bokehjs_path):
STATICFILES_DIRS.append(bokehjs_path())

STATICFILES_USE_NPM = TETHYS_PORTAL_CONFIG.pop("STATICFILES_USE_NPM", False)
if STATICFILES_USE_NPM:
Expand Down

0 comments on commit 395bbe4

Please sign in to comment.