From 9d9ccd3e5bb2341b9399f59abb0a3ed2ecc37469 Mon Sep 17 00:00:00 2001 From: "Adrian A. Baumann" Date: Sun, 28 Dec 2025 15:34:15 +0100 Subject: [PATCH] Static URL troubleshooting --- argocd/deployment.yaml | 2 +- labhelper/settings.py | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/argocd/deployment.yaml b/argocd/deployment.yaml index 89ded3c..284887d 100644 --- a/argocd/deployment.yaml +++ b/argocd/deployment.yaml @@ -25,7 +25,7 @@ spec: mountPath: /data containers: - name: web - image: git.baumann.gr/adebaumann/labhelper:0.005 + image: git.baumann.gr/adebaumann/labhelper:0.006 imagePullPolicy: Always ports: - containerPort: 8000 diff --git a/labhelper/settings.py b/labhelper/settings.py index 92247f3..537ea62 100644 --- a/labhelper/settings.py +++ b/labhelper/settings.py @@ -116,11 +116,8 @@ USE_TZ = True # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/5.2/howto/static-files/ -STATIC_URL = 'static/' +STATIC_URL = '/static/' STATIC_ROOT = BASE_DIR / 'staticfiles' -STATICFILES_DIRS = [ - BASE_DIR / 'static', -] # Default primary key field type # https://docs.djangoproject.com/en/5.2/ref/settings/#default-auto-field