Skip to content

load AWS_S3_BUCKET_NAME and AWS_S3_ENDPOINT_URL from env as well? #63

@stabldev

Description

@stabldev

currently, I need to specify both like this:

class CustomS3Storage(S3Storage):
    AWS_S3_BUCKET_NAME: str = os.environ.get("AWS_S3_BUCKET_NAME", "")
    AWS_S3_ENDPOINT_URL: str = os.environ.get("AWS_S3_ENDPOINT_URL", "")
    AWS_S3_USE_SSL: bool = not settings.DEBUG
    AWS_DEFAULT_ACL: str = "public-read"

reading AWS_S3_BUCKET_NAME and AWS_S3_ENDPOINT_URL from env feels redundant, since they're supposed to be read by default (like django-storages)... i believe there might be some reason for this...or am i missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions