Django S3 Storage
AWS S3 Bucket file storage system for Django applications.
Setup
pip install django-aws-s3-storage
Configuration
Add django_aws_s3_storage to your INSTALLED_APPS setting.
INSTALLED_APPS = [
...
'django_aws_s3_storage',
...
]
Set DEFAULT_FILE_STORAGE setting.
DEFAULT_FILE_STORAGE = 'django_aws_s3_storage.storage.S3Storage'
Add DJANGO_AWS_S3_STORAGE specific settings.
DJANGO_AWS_S3_STORAGE = {
'AWS_ACCESS_KEY_ID': 'YOUR_ACCESS_KEY_ID',
'AWS_SECRET_ACCESS_KEY': 'YOUR_SECRET_KEY',
'BUCKET_NAME': 'BUCKET_NAME',
'PUBLIC_URL': 'https://your-cloudfront-url.com', # OPTIONAL
}
Usage
After finishing the configuration steps, in just add a file-like field to one your models, as the example bellow
from django.db import models
class MyModel(models.Model):
my_file = models.FileField()
Links
Metadata
Release files for django-aws-s3-storage 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django-aws-s3-storage-1.0.1.tar.gz | 3.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_aws_s3_storage-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.0 kB
Release files / django-aws-s3-storage-1.0.1.tar.gz
| Download URL | django-aws-s3-storage-1.0.1.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
91b0c947b603779539eb715b0bb9a72560a1e04a9210bf7ec8cb77e0b49b07b8
|
|
BLAKE2b-256 checksum How to use checksums |
0905baf59e37a5b592c95c5387888263a64b90473926599cdcdc48f2bb12473c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.10
|
Release files / django_aws_s3_storage-1.0.1-py3-none-any.whl
| Download URL | django_aws_s3_storage-1.0.1-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5f946087078ef555cc9e8d8e24c63f374eb695eaa7ad0db32ef6403833bd54c6
|
|
BLAKE2b-256 checksum How to use checksums |
071416cf6f4aa3724fd91e2ac1205b78fb6a61d1ff687154b495bd66a78fea14
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.10
|
Security for django-aws-s3-storage 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.