AWS S3 Bucket file storage system for Django applications
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django-aws-s3-storage-1.0.1.tar.gz.
File metadata
- Download URL: django-aws-s3-storage-1.0.1.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91b0c947b603779539eb715b0bb9a72560a1e04a9210bf7ec8cb77e0b49b07b8
|
|
| MD5 |
d0d0b429f918dc6f681c0181b7bd96c8
|
|
| BLAKE2b-256 |
0905baf59e37a5b592c95c5387888263a64b90473926599cdcdc48f2bb12473c
|
File details
Details for the file django_aws_s3_storage-1.0.1-py3-none-any.whl.
File metadata
- Download URL: django_aws_s3_storage-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f946087078ef555cc9e8d8e24c63f374eb695eaa7ad0db32ef6403833bd54c6
|
|
| MD5 |
d29f314f4803424a568260af58f0b22d
|
|
| BLAKE2b-256 |
071416cf6f4aa3724fd91e2ac1205b78fb6a61d1ff687154b495bd66a78fea14
|