Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* fix #59: cannot import name `get_storage_class` (Django 5.1) The `get_storage_class` function has been removed in Django 5.1 https://docs.djangoproject.com/en/5.1/releases/5.1/ * Use settings.STORAGES["default"] introduced in Django 5.0 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. * django_settings
- Loading branch information