7
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-06-26 08:52:34 +00:00

Enable grade download by default

It was tricky to define correct settings: the "localfs" default storage
backend was causing incorrect urls of the form "/media/<id>/<name>.csv".

Close #143
This commit is contained in:
Régis Behmo 2019-02-07 09:34:54 +01:00
parent 9cd79fb44f
commit abfbf1cc21
6 changed files with 22 additions and 4 deletions

View File

@ -2,6 +2,7 @@
## Latest
- [Feature] Enable grade downloads by default (#143)
- [Improvement] Remove orphan containers on `local start`
## 3.2.0 (2019-03-18)

View File

@ -11,6 +11,7 @@
"ENABLE_COURSEWARE_SEARCH": true,
"ENABLE_DASHBOARD_SEARCH": true,
"ENABLE_COMBINED_LOGIN_REGISTRATION": true,
"ENABLE_GRADE_DOWNLOADS": true,
"ENABLE_MOBILE_REST_API": true,
"ENABLE_OAUTH2_PROVIDER": true,
"ENABLE_EDXNOTES": {{ "true" if ACTIVATE_NOTES else "false" }}

View File

@ -1,3 +1,4 @@
import os
from cms.envs.devstack import *
INSTALLED_APPS.remove('openedx.core.djangoapps.datadog.apps.DatadogConfig')
@ -23,7 +24,6 @@ LOGGING['handlers']['tracking'] = {
LOCALE_PATHS.append('/openedx/locale')
# Create folders if necessary
import os
for folder in [LOG_DIR, MEDIA_ROOT, STATIC_ROOT_BASE]:
if not os.path.exists(folder):
os.makedirs(folder)

View File

@ -1,3 +1,4 @@
import os
from cms.envs.aws import *
INSTALLED_APPS.remove('openedx.core.djangoapps.datadog.apps.DatadogConfig')
@ -32,7 +33,6 @@ SERVER_EMAIL = ENV_TOKENS['CONTACT_EMAIL']
LOCALE_PATHS.append('/openedx/locale')
# Create folders if necessary
import os
for folder in [LOG_DIR, MEDIA_ROOT, STATIC_ROOT_BASE]:
if not os.path.exists(folder):
os.makedirs(folder)

View File

@ -1,3 +1,4 @@
import os
from lms.envs.devstack import *
INSTALLED_APPS.remove('openedx.core.djangoapps.datadog.apps.DatadogConfig')
@ -29,10 +30,17 @@ ORA2_FILEUPLOAD_BACKEND = 'filesystem'
ORA2_FILEUPLOAD_ROOT = '/openedx/data/ora2'
ORA2_FILEUPLOAD_CACHE_NAME = 'ora2-storage'
GRADES_DOWNLOAD = {
'STORAGE_TYPE': '',
'STORAGE_KWARGS': {
'base_url': "/media/grades/",
'location': os.path.join(MEDIA_ROOT, 'grades'),
}
}
LOCALE_PATHS.append('/openedx/locale')
# Create folders if necessary
import os
for folder in [LOG_DIR, MEDIA_ROOT, STATIC_ROOT_BASE, ORA2_FILEUPLOAD_ROOT]:
if not os.path.exists(folder):
os.makedirs(folder)

View File

@ -1,3 +1,4 @@
import os
from lms.envs.aws import *
INSTALLED_APPS.remove('openedx.core.djangoapps.datadog.apps.DatadogConfig')
@ -55,10 +56,17 @@ ORA2_FILEUPLOAD_BACKEND = 'filesystem'
ORA2_FILEUPLOAD_ROOT = '/openedx/data/ora2'
ORA2_FILEUPLOAD_CACHE_NAME = 'ora2-storage'
GRADES_DOWNLOAD = {
'STORAGE_TYPE': '',
'STORAGE_KWARGS': {
'base_url': "/media/grades/",
'location': os.path.join(MEDIA_ROOT, 'grades'),
}
}
LOCALE_PATHS.append('/openedx/locale')
# Create folders if necessary
import os
for folder in [LOG_DIR, MEDIA_ROOT, STATIC_ROOT_BASE, ORA2_FILEUPLOAD_ROOT]:
if not os.path.exists(folder):
os.makedirs(folder)