Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Add S3PublicStorage public storage config for S3
Browse files Browse the repository at this point in the history
Make it possible to more easily configure a
GLAMkit site to use public instead of private
S3 storage.

The implementation is drawn from the languishing
and contentious pull request at
#217
  • Loading branch information
jmurty committed Oct 19, 2017
1 parent 0f9bfbd commit 0012c5a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions icekit/utils/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,13 @@ class S3DefaultStorage(
pass


class S3PublicStorage(
# HashedMediaMixin,
S3MediaLocationMixin,
S3PublicMixin,
S3Boto3Storage):

pass


default_storage = get_storage_class(settings.DEFAULT_FILE_STORAGE)()

0 comments on commit 0012c5a

Please sign in to comment.