Sfoglia il codice sorgente

Cambio directorio media a mediafiles

Celestino Rey 7 mesi fa
parent
commit
ff5cd3c1af
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 1 1
      K8S/jugaralpadel-deployment.yaml
  2. 1 1
      src/gestion_reservas/settings.py

+ 1 - 1
K8S/jugaralpadel-deployment.yaml

@@ -93,7 +93,7 @@ spec:
         - containerPort: 8000
           protocol: TCP
         volumeMounts:
-        - mountPath: /app/media
+        - mountPath: /app/mediafiles
           name: jugaralpadel-media
 
         - mountPath: /app/eventos/migrations

+ 1 - 1
src/gestion_reservas/settings.py

@@ -150,7 +150,7 @@ STATIC_ROOT = BASE_DIR / "staticfiles"
 # STATICFILES_DIRS = [BASE_DIR / "eventos/static",]
 
 # Mediafiles
-MEDIA_ROOT = BASE_DIR / 'media'
+MEDIA_ROOT = BASE_DIR / 'mediafiles'
 MEDIA_URL = '/media/'
 
 # Default primary key field type