From 679c5d1776bae0b322b00cc0d563607efd415346 Mon Sep 17 00:00:00 2001 From: Colin Slater Date: Thu, 17 Oct 2024 08:13:27 -0700 Subject: [PATCH] Use per-blueprint static dir. This ensures that static is available even when the ingress is only allowing traffic with the url prefix of the blueprint. --- python/lsst/production/tools/tractTable.py | 2 +- templates/base.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/python/lsst/production/tools/tractTable.py b/python/lsst/production/tools/tractTable.py index 0897e3a..19c760c 100644 --- a/python/lsst/production/tools/tractTable.py +++ b/python/lsst/production/tools/tractTable.py @@ -25,7 +25,7 @@ import numpy as np import urllib.parse import yaml -bp = Blueprint("metrics", __name__, url_prefix="/plot-navigator/metrics") +bp = Blueprint("metrics", __name__, url_prefix="/plot-navigator/metrics", static_folder="../../../../static") NO_BUTLER = True diff --git a/templates/base.html b/templates/base.html index e2f530c..4402303 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,8 +1,8 @@ Rubin Production Tools - - - + + + {% block additional_refs %}{% endblock %}