falcopackages / falco-cli

Enhance your Django developer experience: CLI and Guides for the Modern Django Developer.
https://falco.oluwatobi.dev/
Other
366 stars 17 forks source link

media s3 config #69

Closed Tobi-De closed 5 months ago

Tobi-De commented 9 months ago

https://django-storages.readthedocs.io/en/latest/backends/amazon-S3.html

# django-storages[s3]

STORAGES = {
    "default": {
        "BACKEND": "storages.backends.s3.S3Storage",
        "OPTIONS": {
            "location": "media",
            "file_overwrite": False,
        },
    },
 }
aws_s3_domain = AWS_S3_CUSTOM_DOMAIN or f"{AWS_STORAGE_BUCKET_NAME}.s3.amazonaws.com"
MEDIA_URL = f"https://{aws_s3_domain}/media/"