diff options
| author | Max Nanis | 2026-09-13 21:06:40 -0700 |
|---|---|---|
| committer | Max Nanis | 2026-09-13 21:06:40 -0700 |
| commit | c9763181c32ec3e150f1d1b73ac1c4287cb646f5 (patch) | |
| tree | ba5e2b16ff8daf97870f179e6a2cd1376d2eebb4 /jb/settings.py | |
| parent | aef85c15f867b218ed108a52c40a761cf46750bb (diff) | |
| download | amt-jb-c9763181c32ec3e150f1d1b73ac1c4287cb646f5.tar.gz amt-jb-c9763181c32ec3e150f1d1b73ac1c4287cb646f5.zip | |
no html cache, crazy gitignore, manfiest parsing, html file to fstring for replacement.
manually copying the manfiest file from jenkins for now
Diffstat (limited to 'jb/settings.py')
| -rw-r--r-- | jb/settings.py | 7 |
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): |
