Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

S3OptimizedUploadStorage does not appear to respect the location variable #269

Unanswered
paribaker asked this question in Q&A
Discussion options

Firstly, love this module it has been really useful but I have a question.

Typically when setting up Django storages we can set the location for the storage class e.g

class PrivateMediaStorage(S3Boto3Storage):
 location = settings.PRIVATE_MEDIAFILES_LOCATION
 default_acl = "private"
 file_overwrite = False
 custom_domain = False

But with this middle ware it doesn't seem to apply the new location this results in a file not being saved to the model when trying to extend S3OptimizedUploadStorage

class PrivateLargeMediaStorage(S3OptimizedUploadStorage):
 location = settings.PRIVATE_MEDIAFILES_LOCATION
 default_acl = "private"
 file_overwrite = False
 custom_domain = False

Is this expected behavior? It seems this module calls a get_aws_storage which checks settings.AWS_LOCATION

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /