From 5acddd37e2afa8437d55f3c75e11e5b55d481586 Mon Sep 17 00:00:00 2001 From: Ryan Westfall Date: Tue, 14 Jul 2026 03:32:28 -0700 Subject: [PATCH] Fix WhiteNoise crash from missing CSS background GIFs (#23) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary - Remove unused `.top-head` / `.top-body` CSS rules that referenced missing GIF files (`top-head.gif`, `top-body.gif`), which caused `whitenoise.storage.MissingFileError` and crashed the prod container at collectstatic/startup. - Drop a stray `{% load static %}` tag from `style.css` (not a Django template). - Branch rebased onto current `master` (dockerize already merged via #21); this PR is the CSS-only fix. ## Test plan - [ ] Merge and let deploy run (or redeploy scha prod). - [ ] Confirm web container stays up (no WhiteNoise `MissingFileError`). - [ ] Spot-check site CSS still looks fine on public pages. - [ ] Separately: if Compose still warns about unset `$…` vars, escape `$` as `$$` in `~/Documents/secrets/scha/scha_prod.env` password/`DATABASE_URL`. Reviewed-on: https://git.aimloperations.com/ai_ml_operations/scha/pulls/23 --- schasite/static/css/style.css | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/schasite/static/css/style.css b/schasite/static/css/style.css index 4d8e6e1..a2b83e1 100644 --- a/schasite/static/css/style.css +++ b/schasite/static/css/style.css @@ -1,5 +1,4 @@ /* CSS Document */ -{% load static %} body{ margin:0px; background-repeat: repeat; @@ -13,10 +12,6 @@ h1{ } h1 span{color:#979797;} .clear{margin:0px; padding:0px; clear:both;} -.top-head{ - height:118px; width:1000px; margin:auto; - background:url(../images/top-head.gif) repeat-x; - } .logo{ height:103px; width:325px; float:left; padding:15px 0px 0px 55px; @@ -72,22 +67,6 @@ h1 span{color:#979797;} padding-left:22px; font-weight:bold; background-position: 6px; } -.top-body{ - height:auto; width:940px; margin:auto; - background: url(../images/top-body.gif) repeat-x #cfcfcf; - padding:0px 0px 25px 60px; - } -.top-body-con{ - height:auto; width:265px; float:left; - padding:0px 35px 0px 0px; - } -.top-body-con p{ - margin:0px; padding:30px 0px 0px 0px; - font-family:Verdana, Arial, Helvetica, sans-serif; color:#2e2e2e; - font-size:11px; font-weight:bold; line-height:26px; - } -.top-body-con a{color:#63880a;} -.top-body-con span{color:#63880a; font-size:15px;} .img-box{ height:auto; width:auto; float:left; padding:30px 25px 0px 0px;