Django 4.2 LTS Upgrade
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest10 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/10 | requirements.txt: upgrade Django 3.2 -> 4.2requirements.txt | +1 | 0 replies | |
| 2/10 | docker-compose.yml: bump mariadb from 10.3 to 10.4docker-compose.yml | +1 | 0 replies | |
| 3/10 | Drop django-bootstrap-pagination: incompatibledocker/ requirements.txt settings.py | +0 | 0 replies | |
| 4/10 | bootstrap_pagination: disable via commenttemplates/ templates/ templates/ +7 more | +20 | 0 replies | |
| 5/10 | Refactor usage of django.conf.urlslayerindex/ layerindex/ rrs/ +1 more | +88 | 0 replies | |
| 6/10 | Dockerfile: drop python3-pilDockerfile | +0 | 0 replies | |
| 7/10 | requirements.txt: upgrade all to latestrequirements.txt | +16 | 0 replies | |
| 8/10 | requirements.txt: update dependenciesrequirements.txt | +12 | 0 replies | |
| 9/10 | password_validation.py: fix deprecated ugettextpassword_validation.py | +1 | 0 replies | |
| 10/10 | docker/settings.py: add CSRF_TRUSTED_ORIGINSdocker/ | +1 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [layerindex-web 00/10] Django 4.2 LTS Upgrade
This series upgrades to the current LTS for Django, 4.2.
The two most obvious changes are:
* django.utils.translation.ugettext() -> gettext
* django.conf.urls.url() -> re_path()
See:
https://docs.djangoproject.com/en/4.2/releases/4.0/#features-removed-in-4-0
https://docs.djangoproject.com/en/4.2/internals/deprecation/#deprecation-removed-in-4-0
While we are at it, upgrade all components in requirements.txt and update to reflect missing dependencies.
One casualty of this upgrade is django-bootstrap-pagination which is no longer maintained and incompatible with Django 4.2.
One additional requirement for settings.py is setting CSRF_TRUSTED_ORIGINS to allow POST requests (ALLOWED_HOSTS is no longer sufficient).
Tim Orling (10):
requirements.txt: upgrade Django 3.2 -> 4.2 docker-compose.yml: bump mariadb from 10.3 to 10.4 Drop django-bootstrap-pagination: incompatible
bootstrap_pagination: disable via comment Refactor usage of django.conf.urls
Dockerfile: drop python3-pil requirements.txt: upgrade all to latest requirements.txt: update dependencies password_validation.py: fix deprecated ugettext docker/settings.py: add CSRF_TRUSTED_ORIGINS
Dockerfile | 1 - docker-compose.yml | 2 +- docker/settings.py | 2 +- layerindex/urls.py | 108 ++++++++++----------- layerindex/urls_branch.py | 25 +++-- password_validation.py | 2 +- requirements.txt | 47 +++++---- rrs/urls.py | 16 +-- settings.py | 1 - templates/layerindex/bulkchangesearch.html | 2 + templates/layerindex/classes.html | 2 + templates/layerindex/classicrecipes.html | 2 + templates/layerindex/distros.html | 2 + templates/layerindex/history.html | 2 + templates/layerindex/layers.html | 2 + templates/layerindex/machines.html | 2 + templates/layerindex/recipes.html | 2 + templates/layerindex/reviewlist.html | 2 + templates/layerindex/updatelist.html | 2 + urls.py | 31 +++--- 20 files changed, 140 insertions(+), 115 deletions(-)
Signature · 1 line
2.34.1