Migrate to new namespace for S3 Storage class

This commit is contained in:
Bruno Alla 2023-09-06 20:50:44 +01:00
parent 5d1c4b667d
commit 7a594b738a
No known key found for this signature in database

View File

@ -1,13 +1,13 @@
{% if cookiecutter.cloud_provider == 'AWS' -%} {% if cookiecutter.cloud_provider == 'AWS' -%}
from storages.backends.s3boto3 import S3Boto3Storage from storages.backends.s3 import S3Storage
class StaticRootS3Boto3Storage(S3Boto3Storage): class StaticRootS3Boto3Storage(S3Storage):
location = "static" location = "static"
default_acl = "public-read" default_acl = "public-read"
class MediaRootS3Boto3Storage(S3Boto3Storage): class MediaRootS3Boto3Storage(S3Storage):
location = "media" location = "media"
file_overwrite = False file_overwrite = False
{%- elif cookiecutter.cloud_provider == 'GCP' -%} {%- elif cookiecutter.cloud_provider == 'GCP' -%}