aboutsummaryrefslogtreecommitdiff
path: root/jb/settings.py
diff options
context:
space:
mode:
Diffstat (limited to 'jb/settings.py')
-rw-r--r--jb/settings.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/jb/settings.py b/jb/settings.py
index 1c02075..543a0e8 100644
--- a/jb/settings.py
+++ b/jb/settings.py
@@ -1,3 +1,4 @@
+import json
from functools import lru_cache
from os.path import abspath
from os.path import dirname as pdirname
@@ -16,6 +17,12 @@ BASE_DIR = pdirname(pdirname(abspath(__file__)))
BASE_HTML_PATH = Path(BASE_DIR) / "templates" / "base.html"
BASE_HTML = BASE_HTML_PATH.read_text()
+MANIFEST_PATH = Path(BASE_DIR) / "jb-ui" / "dist/.vite/manifest.json"
+
+
+def load_manifest():
+ with open(MANIFEST_PATH) as f:
+ return json.load(f)
class Settings(GRLBaseSettings):