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.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2d09d1870408a6b47f9a61fe0093385a7dc24e27fb35dbe330187044c8bea07 |
|
MD5 | 37f3ab04dcdc0f6fce92bc08f330b880 |
|
BLAKE2b-256 | 2faa58abd998a8ff5bed12ad3121bb73a63637c19627af81342b79c8d55469a2 |