djangoproject.com icon indicating copy to clipboard operation
djangoproject.com copied to clipboard

Upgrade Django from 3.2 to 4.2

Open sarahboyce opened this issue 1 year ago • 7 comments

As 3.2 will no longer be supported from Q2 next year, we should upgrade Django.

sarahboyce avatar Nov 29 '23 10:11 sarahboyce

Hi,

I've been working for the past few weeks on bringing code.djangoproject.com to modern Python and Django versions and we're almost caught up to Django 3.2 now.

Would it be OK for me to pick this issue up so I can work on upgrading both sites in parallel?

bmispelon avatar Feb 18 '24 16:02 bmispelon

Hi @bmispelon 😄 sure, I've assigned you in the issue

sabderemane avatar Feb 18 '24 16:02 sabderemane

Yes 🙂 we're been trying to upgrade the dependencies. These are the sticking points:

  • django-push needs to issue a release to pypi but the package is looking for a new home. Been trying to move to Jazzband with no luck: https://github.com/jazzband/help/issues/351
  • we've had to revert a django-recaptcha upgrade twice and have raised an issue here: https://github.com/django-recaptcha/django-recaptcha/issues/348

sarahboyce avatar Feb 18 '24 16:02 sarahboyce

Thanks and thanks 😁

Knowing what the blocker are is super helpful 👍🏻 I'll see if I can come up with alternate solutions or if i can poke the right people to move things forward

bmispelon avatar Feb 18 '24 16:02 bmispelon

I've added a workaround for the issue with django-recaptcha: #1480

bmispelon avatar Feb 20 '24 19:02 bmispelon

Django 3.2 is no longer supported: https://www.djangoproject.com/weblog/2024/apr/03/bugfix-release/ I think our blocker here is needing a solution for Django-PuSH

sarahboyce avatar Apr 04 '24 07:04 sarahboyce

Django 3.2 is no longer supported: https://www.djangoproject.com/weblog/2024/apr/03/bugfix-release/ I think our blocker here is needing a solution for Django-PuSH

No release has been made on PyPI, but support for Django 4.2+ has been committed, so we can pin against that. I've taken that approach in PR #1487 and it seems to work well.

bmispelon avatar Apr 05 '24 20:04 bmispelon