Skip to content

Commit a8c381d

Browse files
author
Abdul Rehman
committed
fix!: Migrate to STORAGES from DEFAULT_FILE_STORAGE
1 parent 04c5f11 commit a8c381d

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- [Fix!] Migrate from using DEFAULT_FILE_STORAGE to STORAGES. (by @rehmansheikh222)

tutorminio/patches/discovery-common-settings

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# MinIO object storage
2-
DEFAULT_FILE_STORAGE = "storages.backends.s3boto3.S3Boto3Storage"
2+
STORAGES["default"]["BACKEND"] = "storages.backends.s3boto3.S3Boto3Storage"
33
AWS_ACCESS_KEY_ID = "{{ OPENEDX_AWS_ACCESS_KEY }}"
44
AWS_SECRET_ACCESS_KEY = "{{ OPENEDX_AWS_SECRET_ACCESS_KEY }}"
55
AWS_S3_SIGNATURE_VERSION = "s3v4"

tutorminio/patches/openedx-common-settings

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
DEFAULT_FILE_STORAGE = "storages.backends.s3boto3.S3Boto3Storage"
1+
STORAGES["default"]["BACKEND"] = "storages.backends.s3boto3.S3Boto3Storage"
22
VIDEO_IMAGE_SETTINGS["STORAGE_KWARGS"]["location"] = VIDEO_IMAGE_SETTINGS["STORAGE_KWARGS"]["location"].lstrip("/")
33
VIDEO_TRANSCRIPTS_SETTINGS["STORAGE_KWARGS"]["location"] = VIDEO_TRANSCRIPTS_SETTINGS["STORAGE_KWARGS"]["location"].lstrip("/")
44
GRADES_DOWNLOAD["STORAGE_KWARGS"] = {"location": GRADES_DOWNLOAD["STORAGE_KWARGS"]["location"].lstrip("/")}
55
GRADES_DOWNLOAD["STORAGE_KWARGS"]["bucket_name"] = "{{ MINIO_GRADES_BUCKET_NAME }}"
6-
OPENEDX_LEARNING["MEDIA"]["BACKEND"] = DEFAULT_FILE_STORAGE
6+
OPENEDX_LEARNING["MEDIA"]["BACKEND"] = STORAGES["default"]["BACKEND"]
77
OPENEDX_LEARNING["MEDIA"]["OPTIONS"] = {
88
'bucket_name': "{{ MINIO_OPENEDX_LEARNING_BUCKET_NAME }}",
99
}

tutorminio/patches/openedx-lms-production-settings

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PROFILE_IMAGE_BACKEND = {
2-
"class": DEFAULT_FILE_STORAGE,
2+
"class": STORAGES["default"]["BACKEND"],
33
"options": {
44
"bucket_name": "{{ MINIO_BUCKET_NAME }}",
55
"querystring_auth": False,

0 commit comments

Comments
 (0)