Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- 💥[Bugfix] Migrate from using DEFAULT_FILE_STORAGE to STORAGES as part of the major Django 5.2 upgrade in Open edX. (by @rehmansheikh222)
2 changes: 1 addition & 1 deletion tutorminio/patches/discovery-common-settings
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# MinIO object storage
DEFAULT_FILE_STORAGE = "storages.backends.s3boto3.S3Boto3Storage"
STORAGES["default"]["BACKEND"] = "storages.backends.s3boto3.S3Boto3Storage"
AWS_ACCESS_KEY_ID = "{{ OPENEDX_AWS_ACCESS_KEY }}"
AWS_SECRET_ACCESS_KEY = "{{ OPENEDX_AWS_SECRET_ACCESS_KEY }}"
AWS_S3_SIGNATURE_VERSION = "s3v4"
Expand Down
4 changes: 2 additions & 2 deletions tutorminio/patches/openedx-common-settings
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
DEFAULT_FILE_STORAGE = "storages.backends.s3boto3.S3Boto3Storage"
STORAGES["default"]["BACKEND"] = "storages.backends.s3boto3.S3Boto3Storage"
VIDEO_IMAGE_SETTINGS["STORAGE_KWARGS"]["location"] = VIDEO_IMAGE_SETTINGS["STORAGE_KWARGS"]["location"].lstrip("/")
VIDEO_TRANSCRIPTS_SETTINGS["STORAGE_KWARGS"]["location"] = VIDEO_TRANSCRIPTS_SETTINGS["STORAGE_KWARGS"]["location"].lstrip("/")
GRADES_DOWNLOAD["STORAGE_KWARGS"] = {"location": GRADES_DOWNLOAD["STORAGE_KWARGS"]["location"].lstrip("/")}
GRADES_DOWNLOAD["STORAGE_KWARGS"]["bucket_name"] = "{{ MINIO_GRADES_BUCKET_NAME }}"
OPENEDX_LEARNING["MEDIA"]["BACKEND"] = DEFAULT_FILE_STORAGE
OPENEDX_LEARNING["MEDIA"]["BACKEND"] = STORAGES["default"]["BACKEND"]
OPENEDX_LEARNING["MEDIA"]["OPTIONS"] = {
'bucket_name': "{{ MINIO_OPENEDX_LEARNING_BUCKET_NAME }}",
}
Expand Down
2 changes: 1 addition & 1 deletion tutorminio/patches/openedx-lms-production-settings
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PROFILE_IMAGE_BACKEND = {
"class": DEFAULT_FILE_STORAGE,
"class": STORAGES["default"]["BACKEND"],
"options": {
"bucket_name": "{{ MINIO_BUCKET_NAME }}",
"querystring_auth": False,
Expand Down