-
Notifications
You must be signed in to change notification settings - Fork 2.8k
18896 Replace STORAGE_BACKEND with STORAGES and support Script running from S3 #18680
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 19 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
289dcff
18423 scripts upload to django-storages
arthanson 78ae2fd
Merge branch 'feature' into 18423-django-storages
arthanson d832314
18423 scripts upload to django-storages
arthanson 3f63e03
18423 source view
arthanson dad7637
18423 source view
arthanson 69fcdd2
18423 source view
arthanson 3ade819
18423 scripts root update
arthanson 099242e
18423 fix load_yaml / load_json
arthanson 45e2a93
18423 update docs
arthanson 65e6e3c
Merge branch 'feature' into 18423-django-storages
arthanson 1a1b39d
18423 review changes
arthanson 7ac9bd9
18423 review changes
arthanson af6f41d
18423 review changes
arthanson 85ff6d7
18423 review changes
arthanson 547ecf5
18423 review changes
arthanson 0f4d0fb
18423 review changes
arthanson 4552cea
18423 review changes
arthanson 2517c27
18423 review changes
arthanson 6d1c846
18423 review changes
arthanson 650272d
18423 review changes
arthanson 3637d6c
Merge branch 'feature' into 18423-django-storages
arthanson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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 @@ | ||
from django.conf import settings | ||
from django.core.files.storage import FileSystemStorage | ||
from django.utils.functional import cached_property | ||
|
||
|
||
class ScriptFileSystemStorage(FileSystemStorage): | ||
arthanson marked this conversation as resolved.
Show resolved
Hide resolved
|
||
""" | ||
Custom storage for scripts - for django-storages as the default one will | ||
go off media-root and raise security errors as the scripts can be outside | ||
the media-root directory. | ||
""" | ||
@cached_property | ||
def base_location(self): | ||
return settings.SCRIPTS_ROOT |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.