Lightlines
By jeffallan

django-storages-s3

jeffallan742 installs

Store Django uploads on S3 with private links.

What it does

Configures Django projects to store static and uploaded files on S3 with public or private access.

When to use it

Use when moving Django static or media storage to S3, separating public and private files, or adding presigned upload and download links.

How to use it

Give it a Django project to configure for S3 storage; it adds storage settings, access-specific backends where needed, and tests.

What you provide

  • An existing project

Uses

Good to know

  • cannot be undone: AWS S3

Latest review

What you need · 6

Requires a Django project; uses STORAGES on Django 4.2+ and reserves legacy storage settings for versions below 4.2.

Requires an S3 bucket accessible to the application for the upload verification step.

Loads the access key ID from the environment together with AWS_SECRET_ACCESS_KEY; an attached IAM role is the alternative on AWS infrastructure.


Access · 1

This skill

AWS S3

Write

Uploads files and deletes replacements (irreversible)