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

fix #59: cannot import name get_storage_class (Django 5.1) #60

Merged
merged 3 commits into from
Aug 23, 2024

Conversation

ecarrara
Copy link
Contributor

The get_storage_class function has been removed in Django 5.1

https://docs.djangoproject.com/en/5.1/releases/5.1/

Adjusted storage class retrieval to support the new STORAGES structure
introduced in Django 5.0. The code now checks for the presence of a
default storage configuration in settings, reverting to the previous
DEFAULT_FILE_STORAGE setting for compatibility with earlier versions.
This change maintains compatibility with both Django < 5.0 and >= 5.0
environments.
@iurisilvio iurisilvio merged commit 4dc6986 into businho:main Aug 23, 2024
9 checks passed
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.

2 participants