development branch created to preserve working deploy project
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user