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 #169 - Updates deprecated STATICFILES_STORAGE to STORAGES #173

Merged
merged 3 commits into from
Nov 6, 2023

Conversation

bruunotrindade
Copy link
Contributor

@bruunotrindade bruunotrindade commented Oct 25, 2023

As reported in #169 by @smoehrle, with the release of django 4.2 STATICFILES_STORAGE got deprecated in favor of STORAGES["staticfiles"].

Please, @jrief review this small pull request.

@jrief
Copy link
Owner

jrief commented Oct 25, 2023

Did you run the unit tests locally?

@bruunotrindade
Copy link
Contributor Author

@jrief Yes, I did. Since upgrading to Django 4.2 requires some settings changes, this change won't allow versions before 4.2. I hadn't added to the PR the changes to the GitHub workflows before.

I pushed the updated workflow. Please, check it again.

@@ -13,14 +13,7 @@ jobs:
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
django-version: ["2.2", "3.2", "4.0"]
Copy link
Owner

Choose a reason for hiding this comment

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

Django versions 3.2 and 4.1 are not yet EOL, please check here: https://www.djangoproject.com/download/#supported-versions

This could break the build for many users.

Copy link
Owner

Choose a reason for hiding this comment

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

Moreover, if you change this settings, you should also change classifiers in setup.cfg.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed Django 2.2 and added 4.1 and 4.2 to this workflow. I also changed setup.cfg to update the allowed Django versions.

@jrief jrief merged commit 0c3cda9 into jrief:master Nov 6, 2023
13 checks passed
@jrief
Copy link
Owner

jrief commented Nov 6, 2023

Please change the version to 1.3 and document your changes in the Changelog, so that I can release a new version.

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.

None yet

2 participants