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 The DEFAULT_FILE_STORAGE setting is deprecated warning #408

Merged
merged 1 commit into from
Jun 22, 2024

Conversation

KOliver94
Copy link
Contributor

Split from: #397

There are already two PRs for this (#359, #383) but as they are conflicting with master right now I included it here to avoid the anoying warnings.

Closes #359, closes #383, fixes #366

@KOliver94 KOliver94 mentioned this pull request Jan 28, 2024
Copy link

@50-Course 50-Course left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @KOliver94,

Foremost, thank you for your MR. I so happen to run into this same issue while maintaining django-silk earlier this year, making a pass at this. I have gone through the mentioned tickets (#359 & #383), as well as cross-referencing this and the blocking MRs.

That said, this is good to go 🚀

storage = settings.DEFAULT_FILE_STORAGE
storage = default_storage

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏼

@KOliver94
Copy link
Contributor Author

Hey @frankwiles,

Is there a chance to check my PR and get rid of the warning?

Thanks!

@KOliver94
Copy link
Contributor Author

Hey @frankwiles,

Django 5.1 is expected to be released in 3 months. The issue has been open for more than a year. There are 3 available PRs with fixes. Can you check #359, #383 or mine here please?

Thanks!

Copy link
Contributor

@sobolevn sobolevn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@codingjoe I am really troubled with this warning, because I have -Werror set. Everytime I access this in tests / development I see an error.

New release would be just amazing 🙏

Copy link
Collaborator

@codingjoe codingjoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I stepped down as a maintainer, but sure. This looks fine. Let's get it out the door.

@codingjoe codingjoe merged commit b0e2c4c into revsys:master Jun 22, 2024
29 checks passed
@KOliver94 KOliver94 deleted the django-51-deprecation-fix branch June 26, 2024 20:37
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.

Provide a fix to avoid " The DEFAULT_FILE_STORAGE setting is deprecated"
4 participants