Upgrade to Python 3.9 and Django 4.0 #1952
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This doesn't work yet.
Two sticking points:
The
django-jet
library is incompatible in several places with Django 4.0. I've had a crack to see if the fixes are trivial in czlee/django-jet, and might submit a PR to RamsesMartinez/django-jet if they work out. But otherwise we might need to find another solution again—see Upgrade Python to 3.8.2 and Django to 3.0.7 #1507 for the last time we discussed this.channels
requiresasgiref<3.4
, but Django 4.0 requiresasgiref>=3.4.1
. This is a known issue, see [RuntimeError: no running event loop] with runworker in channels 2.3.1 with latest asgiref (3.4.0) django/channels#1713.We can't stay on
channels==2.4.0
, because it's also not compatible with Django 4.0 (becauseLANGUAGE_SESSION_KEY
was removed; this has been fixed inchannels
). So we're currently blocked by django/channels 1713.This includes:
(The tests pass, but
npm run serve
does not.)