This repository has been archived by the owner on Feb 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Simon Baechler
committed
Jan 15, 2015
1 parent
3403a24
commit 328b174
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# coding: utf-8 | ||
from __future__ import absolute_import, unicode_literals |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
""" | ||
Custom S3 storage backends to store files in subfolders. | ||
Use this backend with the boto storage app. | ||
""" | ||
|
||
from storages.backends.s3boto import S3BotoStorage | ||
|
||
|
||
MediaRootS3BotoStorage = lambda: S3BotoStorage(location='media') | ||
|
||
|
||
class StaticRootS3BotoStorage(S3BotoStorage): | ||
location = 'static' | ||
reduced_redundancy = True |