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.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45a058f005d381956e154e5edb931f01db41b54e89452f6d3ca7428873ced0cd |
|
MD5 | 37f3b549f2243722458cce19579c682e |
|
BLAKE2b-256 | 1461f056dc7cd7e462aa6e316b815275753cbffd48e3f59c31cdd2b180101047 |