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

Migrate to Django 4.2 storage object syntax #4799

Closed
jkaeske opened this issue Jan 22, 2024 · 1 comment
Closed

Migrate to Django 4.2 storage object syntax #4799

jkaeske opened this issue Jan 22, 2024 · 1 comment

Comments

@jkaeske
Copy link
Contributor

jkaeske commented Jan 22, 2024

Description

Django 4.2 changed the way storage objects can be defined. A subclassing in the storages.py is not necessary anymore and storages can be defined like so in the settings file instead:

STORAGES = {
    "default": {
        "BACKEND": "storages.backends.s3.S3Storage",
        "OPTIONS": {
          ...your_options_here
        },
    },
}

Django-storages "strongly encourages" the switch to this way of defining the storage objects, as written in the documentation.

Rationale

This would be in line with django-storages documentation, simplify the code base by deleting the storages.py file, and would give an easy possibility to add more storage objects.

Solution

If it needs to be changed, I can do it.

@browniebroke
Copy link
Member

Duplicate of #4443

@browniebroke browniebroke marked this as a duplicate of #4443 Jan 22, 2024
@browniebroke browniebroke closed this as not planned Won't fix, can't repro, duplicate, stale Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants