mirror of
https://github.com/TrentSPalmer/trentpalmerdotorg.git
synced 2024-11-22 17:31:30 -08:00
19 lines
407 B
Python
19 lines
407 B
Python
|
from storages.backends.s3boto3 import S3Boto3Storage
|
||
|
# from django.conf import settings
|
||
|
|
||
|
|
||
|
class StaticStorage(S3Boto3Storage):
|
||
|
location = 'static'
|
||
|
default_acl = 'public-read'
|
||
|
|
||
|
|
||
|
class PublicMP3Storage(S3Boto3Storage):
|
||
|
location = 'mp3'
|
||
|
default_acl = 'public-read'
|
||
|
# file_overwrite = False
|
||
|
|
||
|
|
||
|
class PublicImageStorage(S3Boto3Storage):
|
||
|
location = 'images'
|
||
|
default_acl = 'public-read'
|