Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-val
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-val
Commits
4f3a9ffa
Commit
4f3a9ffa
authored
May 03, 2017
by
muhammad-ammar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
coditional use of settings
parent
070449c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
edxval/utils.py
+6
-3
No files found.
edxval/utils.py
View file @
4f3a9ffa
...
...
@@ -17,6 +17,9 @@ def get_video_image_storage():
"""
Return the configured django storage backend.
"""
return
get_storage_class
(
settings
.
VIDEO_IMAGE_SETTINGS
.
get
(
'STORAGE_CLASS'
),
)(
**
settings
.
VIDEO_IMAGE_SETTINGS
.
get
(
'STORAGE_KWARGS'
,
{}))
if
hasattr
(
settings
,
'VIDEO_IMAGE_SETTINGS'
):
return
get_storage_class
(
settings
.
VIDEO_IMAGE_SETTINGS
.
get
(
'STORAGE_CLASS'
),
)(
**
settings
.
VIDEO_IMAGE_SETTINGS
.
get
(
'STORAGE_KWARGS'
,
{}))
else
:
return
get_storage_class
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment