From 1dace08739e54861358c2d269c37f046e8afd97d Mon Sep 17 00:00:00 2001 From: SKairinos Date: Fri, 6 Dec 2024 12:14:09 +0000 Subject: [PATCH] AWS_S3_OBJECT_PARAMETERS --- codeforlife/settings/third_party.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/codeforlife/settings/third_party.py b/codeforlife/settings/third_party.py index 891b758..cfb979d 100644 --- a/codeforlife/settings/third_party.py +++ b/codeforlife/settings/third_party.py @@ -2,6 +2,7 @@ This file contains custom settings defined by third party extensions. """ +import json import os from .django import DEBUG @@ -30,7 +31,9 @@ # https://django-storages.readthedocs.io/en/latest/backends/amazon-S3.html#settings AWS_STORAGE_BUCKET_NAME = os.getenv("AWS_STORAGE_BUCKET_NAME") -AWS_S3_OBJECT_PARAMETERS = os.getenv("AWS_S3_OBJECT_PARAMETERS", {}) +AWS_S3_OBJECT_PARAMETERS = json.loads( + os.getenv("AWS_S3_OBJECT_PARAMETERS", "{}") +) AWS_DEFAULT_ACL = os.getenv("AWS_DEFAULT_ACL") AWS_QUERYSTRING_AUTH = bool(int(os.getenv("AWS_QUERYSTRING_AUTH", "1"))) AWS_S3_MAX_MEMORY_SIZE = int(os.getenv("AWS_S3_MAX_MEMORY_SIZE", "0"))