Skip to content

DEFAULT_FILE_STORAGE setting is deprecated #36744

Description

@awais786

https://docs.djangoproject.com/en/5.2/releases/4.2/#id1

The DEFAULT_FILE_STORAGE setting is deprecated in favor of STORAGES["default"].
Please investigate its effect in edx-platform and update accordingly.

Activity

  1. kdmccormick commented on Jun 13, 2025

    @kdmccormick
    Member

    Addressed by #36885

    Please see notes on #36779 (comment)

  2. awais786 commented on Jun 20, 2025

    @awais786
    ContributorAuthor

    PR got reverted.

  3. awais786 commented on Jun 25, 2025

    @awais786
    ContributorAuthor

    @wgu-ram-chandra are you still working in this issue ?

  4. awais786 commented on Jun 26, 2025

    @awais786
    ContributorAuthor

    @kdmccormick any idea about this ticket ? PR got reverted 2 weeks back.

  5. wgu-ram-chandra commented on Jul 1, 2025

    @wgu-ram-chandra
    Contributor

    Hi @awais786, sorry for the delay in getting back to this.

    I’d love to help close out this ticket. Since the original PR was reverted due to the following error:

    django.core.exceptions.ImproperlyConfigured: DEFAULT_FILE_STORAGE/STORAGES are mutually exclusive.
    

    It seems the issue stemmed from running the print_setting command, which caused a KeyError due to misconfiguration or an incompatible setting in the updated Django version.

    To move forward, I’m planning to connect with @kdmccormick once he’s back from the conference to get his thoughts on the best way to address this. Also, if I’m not mistaken, this fix should resolve #36743 as well.

    Let me know if you have any suggestions in the meantime!

  6. awais786 commented on Jul 2, 2025

    @awais786
    ContributorAuthor

    django.core.exceptions.ImproperlyConfigured: DEFAULT_FILE_STORAGE/STORAGES are mutually exclusive.
    Both storages cannot defined together. You need to make sure DEFAULT_FILE_STORAGE removed from everywhere after STORAGES declaration. I think this is the reason. yes #36743 will fix aswell after this PR.

  7. wgu-ram-chandra commented on Jul 2, 2025

    @wgu-ram-chandra
    Contributor

    Thanks for the clarification! I’ll start working on this again and will open a new PR shortly.

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions