Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
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-platform
Commits
b310fbbb
Commit
b310fbbb
authored
Jul 14, 2017
by
Ned Batchelder
Committed by
GitHub
Jul 14, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #15571 from edx/jill/ora2-django-storage
Use ORA2 django storage on openstack and devstack.
parents
b97f5934
0fcdcb02
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
1 deletions
+11
-1
lms/envs/devstack.py
+1
-0
lms/envs/openstack.py
+3
-0
lms/urls.py
+6
-0
requirements/edx/github.txt
+1
-1
No files found.
lms/envs/devstack.py
View file @
b310fbbb
...
...
@@ -8,6 +8,7 @@ from .aws import * # pylint: disable=wildcard-import, unused-wildcard-import
# Don't use S3 in devstack, fall back to filesystem
del
DEFAULT_FILE_STORAGE
MEDIA_ROOT
=
"/edx/var/edxapp/uploads"
ORA2_FILEUPLOAD_BACKEND
=
'django'
DEBUG
=
True
...
...
lms/envs/openstack.py
View file @
b310fbbb
...
...
@@ -17,6 +17,7 @@ SWIFT_NAME_PREFIX = FILE_UPLOAD_STORAGE_PREFIX
SWIFT_USE_TEMP_URLS
=
AUTH_TOKENS
.
get
(
'SWIFT_USE_TEMP_URLS'
,
False
)
SWIFT_TEMP_URL_KEY
=
AUTH_TOKENS
.
get
(
'SWIFT_TEMP_URL_KEY'
)
SWIFT_TEMP_URL_DURATION
=
AUTH_TOKENS
.
get
(
'SWIFT_TEMP_URL_DURATION'
,
1800
)
# seconds
SWIFT_CONTENT_TYPE_FROM_FD
=
AUTH_TOKENS
.
get
(
'SWIFT_CONTENT_TYPE_FROM_FD'
,
True
)
if
AUTH_TOKENS
.
get
(
'SWIFT_REGION_NAME'
):
SWIFT_EXTRA_OPTIONS
=
{
'region_name'
:
AUTH_TOKENS
[
'SWIFT_REGION_NAME'
]}
...
...
@@ -27,3 +28,5 @@ elif SWIFT_AUTH_URL and SWIFT_USERNAME and SWIFT_KEY:
DEFAULT_FILE_STORAGE
=
'swift.storage.SwiftStorage'
else
:
DEFAULT_FILE_STORAGE
=
'django.core.files.storage.FileSystemStorage'
ORA2_FILEUPLOAD_BACKEND
=
"django"
lms/urls.py
View file @
b310fbbb
...
...
@@ -19,6 +19,7 @@ from openedx.core.djangoapps.self_paced.models import SelfPacedConfiguration
from
openedx.core.djangoapps.site_configuration
import
helpers
as
configuration_helpers
from
openedx.features.enterprise_support.api
import
enterprise_enabled
# Uncomment the next two lines to enable the admin:
if
settings
.
DEBUG
or
settings
.
FEATURES
.
get
(
'ENABLE_DJANGO_ADMIN_SITE'
):
admin
.
autodiscover
()
...
...
@@ -146,6 +147,11 @@ js_info_dict = {
'packages'
:
(
'openassessment'
,),
}
urlpatterns
+=
(
url
(
r'^openassessment/fileupload/'
,
include
(
'openassessment.fileupload.urls'
)),
)
# sysadmin dashboard, to see what courses are loaded, to delete & load courses
if
settings
.
FEATURES
[
"ENABLE_SYSADMIN_DASHBOARD"
]:
urlpatterns
+=
(
...
...
requirements/edx/github.txt
View file @
b310fbbb
...
...
@@ -74,7 +74,7 @@ git+https://github.com/edx/lettuce.git@0.2.20.002#egg=lettuce==0.2.20.002
-e git+https://github.com/edx/event-tracking.git@0.2.1#egg=event-tracking==0.2.1
-e git+https://github.com/edx/django-splash.git@v0.2#egg=django-splash==0.2
-e git+https://github.com/edx/acid-block.git@e46f9cda8a03e121a00c7e347084d142d22ebfb7#egg=acid-xblock
git+https://github.com/edx/edx-ora2.git@1.4.
4#egg=ora2==1.4.4
git+https://github.com/edx/edx-ora2.git@1.4.
6#egg=ora2==1.4.6
-e git+https://github.com/edx/edx-submissions.git@2.0.0#egg=edx-submissions==2.0.0
git+https://github.com/edx/ease.git@release-2015-07-14#egg=ease==0.1.3
git+https://github.com/edx/edx-val.git@0.0.17#egg=edxval==0.0.17
...
...
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