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_ACCESS_SECRET_KEY': 'YOUR_SECRET_KEY',
'BUCKET_NAME': 'BUCKET_NAME',
}
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
Close
Hashes for django-aws-s3-storage-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49a4dccca8013dedb9e0090d48c7c1f5ad99853d06686ec53ea07ffd634a6056 |
|
MD5 | 3a6e5e268936a200e68ed94463b7901b |
|
BLAKE2b-256 | 11509d4a5297fa0893d99866cc2874773614d805c6fffc9b36047d6303d25bc7 |