media
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
Jakub K 2023-12-22 21:42:02 +01:00
parent a12a9b8200
commit b6becfdfb8
2 changed files with 6 additions and 2 deletions

View File

@ -20,11 +20,15 @@ spec:
volumeMounts:
- name: static-storage
mountPath: /usr/scr/app/staticfiles # Ścieżka, gdzie Django oczekuje plików statycznych
- name: static-media
mountPath: /usr/scr/app/media
volumes:
- name: static-storage
persistentVolumeClaim:
claimName: static-pvc
- name: static-media
persistentVolumeClaim:
claimName: media-pvc
---
apiVersion: v1
kind: Service

View File

@ -37,7 +37,7 @@ class JobListing(models.Model):
status_paid = models.CharField(max_length=1, choices=paid_status, default='N')
# category = models.CharField(max_length=255, null=True, blank=True)
expiration_date = models.DateField(null=True, blank=True)
# company_logo = models.ImageField(upload_to='company_logos/', null=True, blank=True)
company_logo = models.ImageField(upload_to='company_logos/')
experience_level = models.CharField(max_length=255, null=True, blank=True)
employmentType = models.CharField(max_length=255, null=True, blank=True)
workFromHome = models.CharField(max_length=255)