Skip to content

chore: replace deprecated DEFAULT_FILE_STORAGE - #98

Merged
mrtmm merged 1 commit into
cleura:mainfrom
open-craft:kaustav/remove_storage_settings
Sep 12, 2025
Merged

chore: replace deprecated DEFAULT_FILE_STORAGE#98
mrtmm merged 1 commit into
cleura:mainfrom
open-craft:kaustav/remove_storage_settings

Conversation

@kaustavb12

@kaustavb12 kaustavb12 commented Sep 7, 2025

Copy link
Copy Markdown
Contributor

Description

openedx/openedx-platform#37002 replaced DEFAULT_FILE_STORAGE from edx-platform.

This PR does the same for tutor-contrib-s3; otherwise, instance deployments fails with the error:

│   File "/openedx/venv/lib/python3.11/site-packages/django/conf/__init__.py", line 271, in __init__                                                                                                                                                         │
│     raise ImproperlyConfigured(                                                                                                                                                                                                                            │
│ django.core.exceptions.ImproperlyConfigured: DEFAULT_FILE_STORAGE/STORAGES are mutually exclusive. 

closes #97

cc. @kdmccormick

Supporting information

Link to other information about the change, such as Jira issues, GitHub issues, or Discourse discussions.
Be sure to check they are publicly readable, or if not, repeat the information here.

Testing instructions

Deploy this branch to a sandbox with the latest master branch of edx-platform and verify that it deploys without any errors and that file uploads/reports work correctly.

Deadline

"None" if there's no rush, or provide a specific date or event (and reason) if there is one.

Other information

Private Ref : BB-10021

@kaustavb12
kaustavb12 force-pushed the kaustav/remove_storage_settings branch from 690335a to aea548b Compare September 7, 2025 08:18
Replaces `DEFAULT_FILE_STORAGE` which was deprecated in Django 4.2 with
STORAGES['default']['BACKEND'] in-line with changes in edx-platform
@kaustavb12
kaustavb12 force-pushed the kaustav/remove_storage_settings branch from aea548b to 621193a Compare September 7, 2025 08:26

@kdmccormick kdmccormick left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

For reference, from the edx-platform side, we didn't mean for this to go out as a breaking change, but it did: openedx/openedx-platform#37333

@kaustavb12

Copy link
Copy Markdown
Contributor Author

Thanks @kdmccormick

@mrtmm @fghaas Can you please help with the review and merge of this PR. :)

@mrtmm
mrtmm self-requested a review September 12, 2025 08:41

@mrtmm mrtmm left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @kaustavb12, looks good to me!

@mrtmm
mrtmm merged commit 621193a into cleura:main Sep 12, 2025
4 checks passed
@mrtmm

mrtmm commented Sep 12, 2025

Copy link
Copy Markdown

Version 2.4.0 is now tagged (#99). I also cut a teak branch off main before merging this and added appropriate branch/version info to the README for Redwood, Sumac, Teak and Ulmo.

@kaustavb12

Copy link
Copy Markdown
Contributor Author

@mrtmm Thanks a lot for the review and merge. Noted about the tag and branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update plugin to use STORAGES["default"] instead of deprecated DEFAULT_FILE_STORAGE

3 participants