mirror of
https://github.com/ChristianLight/tutor.git
synced 2025-01-05 23:20:40 +00:00
fix: file upload in open response assessments (ora2)
For some reason, the ora2 cache configuration had disappeared in the upgrade to Palm. This issue was initially raised here: https://discuss.openedx.org/t/palm-2-ora-file-upload-failure/11332 Close #907.
This commit is contained in:
parent
4eb2085023
commit
d6e26c614c
1
changelog.d/20231002_110754_regis_fix_ora2_uploads.md
Normal file
1
changelog.d/20231002_110754_regis_fix_ora2_uploads.md
Normal file
@ -0,0 +1 @@
|
||||
- [Bugfix] Fix file upload in open response assessments. (by @regisb)
|
@ -36,6 +36,11 @@ CACHES["staticfiles"] = {
|
||||
"BACKEND": "django.core.cache.backends.locmem.LocMemCache",
|
||||
"LOCATION": "staticfiles_lms",
|
||||
}
|
||||
CACHES["ora2-storage"] = {
|
||||
"KEY_PREFIX": "ora2-storage",
|
||||
"BACKEND": "django_redis.cache.RedisCache",
|
||||
"LOCATION": "redis://{% if REDIS_USERNAME and REDIS_PASSWORD %}{{ REDIS_USERNAME }}:{{ REDIS_PASSWORD }}{% endif %}@{{ REDIS_HOST }}:{{ REDIS_PORT }}/{{ OPENEDX_CACHE_REDIS_DB }}",
|
||||
}
|
||||
|
||||
# Create folders if necessary
|
||||
for folder in [DATA_DIR, LOG_DIR, MEDIA_ROOT, STATIC_ROOT_BASE, ORA2_FILEUPLOAD_ROOT]:
|
||||
|
Loading…
Reference in New Issue
Block a user