diff --git a/settings.py b/settings.py index 0cefc86..9ee878d 100644 --- a/settings.py +++ b/settings.py @@ -141,8 +141,8 @@ def load_db_config(S3_APP_BUCKET, S3_APP_KEY): S3_PREFIX = os.getenv("aws_s3_app_folder") # AWS_REGION = os.getenv("aws_region") - -DATABASES = load_db_config(S3_BUCKET, S3_PREFIX) +if S3_BUCKET and S3_PREFIX: + DATABASES = load_db_config(S3_BUCKET, S3_PREFIX) # DATABASES = { # "default": {