Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RemovedInDjango51Warning: The DEFAULT_FILE_STORAGE setting is deprecated #245

Open
christianwgd opened this issue Apr 28, 2024 · 0 comments

Comments

@christianwgd
Copy link

In Django 5 I get the deprecation warning:
RemovedInDjango51Warning: The DEFAULT_FILE_STORAGE setting is deprecated. Use STORAGES instead.

Simply replacing STORAGE = settings.DEFAULT_FILE_STORAGE by STORAGE = settings.STORAGES works for me.

This seems to be working from Django 4.2 on. Don't know, which Django version you want to support. Currently the requirements in the setup.py points to 3.2 to 4.2, so maybe there should be some kind of switch for the different Django versions.

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

No branches or pull requests

1 participant