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

Use the new STORAGES setting in Django 4.2 #1759

Merged
merged 2 commits into from
Apr 9, 2023
Merged

Commits on Apr 9, 2023

  1. Use the new STORAGES setting in Django 4.2

    In Django 4.2 the django.core.files.storage.get_storage_class() function is deprecated as well as the STATICFILES_STORAGE setting in favor of STORAGES["staticfiles"].
    
    Use django.core.files.storage.storages to get the configured storage class for static files instead.
    
    For Django versions prior to 4.2 keep using the django.core.files.storage.get_storage_class() function for backwards compatibility.
    
    Fixes #1758
    radwon committed Apr 9, 2023
    Configuration menu
    Copy the full SHA
    6ca66fc View commit details
    Browse the repository at this point in the history
  2. Use the new STORAGES setting in Django 4.2

    Use the new STORAGES setting in Django 4.2
    
    In Django 4.2 the django.core.files.storage.get_storage_class() function
    is deprecated as well as the STATICFILES_STORAGE setting in favor of
    STORAGES["staticfiles"].
    
    Use django.core.files.storage.storages to get the configured storage
    class for static files instead.
    
    For Django versions prior to 4.2 keep using the
    django.core.files.storage.get_storage_class() function for backwards
    compatibility.
    
    Fixes #1758
    radwon committed Apr 9, 2023
    Configuration menu
    Copy the full SHA
    db14656 View commit details
    Browse the repository at this point in the history