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

Upgrade from Django 3.2 to 4.2 #3448

Merged
merged 3 commits into from
Dec 11, 2023

Conversation

rebeccacremona
Copy link
Contributor

Support for Django 3.2 (LTS) will end in April. This PR upgrades us to the next LTS version, 4.2, which will be supported until April 2026.

Default storage and staticfile storage is configured significantly differently in 4.2: instead of a lot of stand-alone settings, everything is configured via key-value pairs in a big dict. So, the settings for stage and prod will have to be reconfigured before deployment.

I had to update a number of supporting packages for compatibility and to resolve deprecation warnings.

The only remaining warnings are the one we already had, from warcprox, and one that I think happens merely because we are patching django.utils.timezone: simply mocking it is seems to be enough to trigger the deprecation warning. I think that will go away by itself during the next upgrade.

@rebeccacremona rebeccacremona requested a review from a team as a code owner December 11, 2023 14:54
@rebeccacremona rebeccacremona requested review from bensteinberg and removed request for a team December 11, 2023 14:54
Copy link
Contributor

@bensteinberg bensteinberg left a comment

Choose a reason for hiding this comment

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

🤘

@rebeccacremona rebeccacremona merged commit fbc67d7 into harvard-lil:develop Dec 11, 2023
2 checks passed
@rebeccacremona rebeccacremona deleted the upgrade-django branch December 11, 2023 20:51
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.

2 participants