development branch created to preserve working deploy project

This commit is contained in:
2025-08-02 17:37:16 +03:00
parent 5e65ea0f7c
commit e824e87953
659 changed files with 90008 additions and 137 deletions
+24
View File
@@ -0,0 +1,24 @@
from django_minio_backend.models import MinioBackend
print("Loading MinioStaticStorage class")
class MinioMediaStorage(MinioBackend):
def __init__(self):
super().__init__(bucket_name='damages')
def get_default_acl(self):
return 'public-read-write'
from django.conf import settings
class MinioStaticStorage(MinioBackend):
def __init__(self):
bucket_name = settings.MINIO_STORAGE_STATIC_BUCKET_NAME
print(f"Initializing MinioStaticStorage with bucket '{bucket_name}'")
super().__init__(bucket_name=bucket_name)
def get_default_acl(self):
print("Setting ACL to public-read-write")
return 'public-read-write'