14 lines
372 B
Python
Executable File
14 lines
372 B
Python
Executable File
from storages.backends.s3boto3 import S3Boto3Storage
|
|
from storages.utils import setting
|
|
|
|
|
|
class S3StaticStorage(S3Boto3Storage):
|
|
bucket_name = setting("AWS_STORAGE_BUCKET_STATIC_NAME")
|
|
default_acl = "public-read"
|
|
querystring_auth = False
|
|
|
|
|
|
class S3MediaStorage(S3Boto3Storage):
|
|
bucket_name = setting("AWS_STORAGE_BUCKET_MEDIA_NAME")
|
|
default_acl = None
|