Skip to content

configured_storage_cls can be a function - #646

Closed
EthanBlackburn wants to merge 1 commit into
django-commons:masterfrom
EthanBlackburn:master
Closed

configured_storage_cls can be a function#646
EthanBlackburn wants to merge 1 commit into
django-commons:masterfrom
EthanBlackburn:master

Conversation

@EthanBlackburn

Copy link
Copy Markdown

Functions can used with S3BotoStorage like so:

StaticRootS3BotoStorage = lambda: S3BotoStorage(location='static')
MediaRootS3BotoStorage = lambda: S3BotoStorage(location='media')

Functions are used with S3BotoStorage:

StaticRootS3BotoStorage = lambda: S3BotoStorage(location='static')
MediaRootS3BotoStorage  = lambda: S3BotoStorage(location='media')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant