From 3252e41bcc5e1ad1d4cd869df1263dc13ed8be44 Mon Sep 17 00:00:00 2001 From: "Adrian A. Baumann" Date: Sun, 28 Dec 2025 21:23:50 +0100 Subject: [PATCH] Serve media files without DEBUG condition --- argocd/deployment.yaml | 2 +- labhelper/urls.py | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/argocd/deployment.yaml b/argocd/deployment.yaml index 58d3827..19a387f 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.012 + image: git.baumann.gr/adebaumann/labhelper:0.013 imagePullPolicy: Always ports: - containerPort: 8000 diff --git a/labhelper/urls.py b/labhelper/urls.py index f4fac83..d5106ec 100644 --- a/labhelper/urls.py +++ b/labhelper/urls.py @@ -27,6 +27,5 @@ urlpatterns = [ path('admin/', admin.site.urls), ] -if settings.DEBUG: - urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) - urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) +urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) +urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)