From 8f80ac4019847fbed7f4832a7f15a7c2ae4e06a1 Mon Sep 17 00:00:00 2001 From: Celestino Rey Date: Wed, 2 Oct 2024 09:05:33 +0200 Subject: [PATCH] Arregado lo de los static --- JugarAlPadel/K8S/jugaralpadel-deployment.yaml | 8 ++++---- JugarAlPadel/gestion_reservas/gestion_reservas/urls.py | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/JugarAlPadel/K8S/jugaralpadel-deployment.yaml b/JugarAlPadel/K8S/jugaralpadel-deployment.yaml index bcedc6f..a579258 100644 --- a/JugarAlPadel/K8S/jugaralpadel-deployment.yaml +++ b/JugarAlPadel/K8S/jugaralpadel-deployment.yaml @@ -102,15 +102,15 @@ spec: - containerPort: 8000 protocol: TCP volumeMounts: - - mountPath: /app/jugaralpadel/mediafiles + - mountPath: /app/gestion_reservas/mediafiles name: jugaralpadel-media - - mountPath: /app/jugaralpadel/eventos/migrations + - mountPath: /app/gestion_reservas/eventos/migrations name: jugaralpadel-eventos-migrations - - mountPath: /app/jugaralpadel/reymotausers/migrations + - mountPath: /app/gestion_reservas/reymotausers/migrations name: jugaralpadel-reymotausers-migrations - - mountPath: /app/jugaralpadel/staticfiles + - mountPath: /app/gestion_reservas/staticfiles name: static-volume imagePullSecrets: - name: myregistrykey diff --git a/JugarAlPadel/gestion_reservas/gestion_reservas/urls.py b/JugarAlPadel/gestion_reservas/gestion_reservas/urls.py index b013c8c..17022c0 100644 --- a/JugarAlPadel/gestion_reservas/gestion_reservas/urls.py +++ b/JugarAlPadel/gestion_reservas/gestion_reservas/urls.py @@ -33,4 +33,3 @@ urlpatterns = [ name="principal"), # new ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) -urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)