Skip to content

Django 4.2 LTS Upgrade

Tim Orling yocto 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10requirements.txt: upgrade Django 3.2 -> 4.2requirements.txt+1 -10 replies
2/10docker-compose.yml: bump mariadb from 10.3 to 10.4docker-compose.yml+1 -10 replies
3/10Drop django-bootstrap-pagination: incompatibledocker/settings.py requirements.txt settings.py+0 -30 replies
4/10bootstrap_pagination: disable via commenttemplates/layerindex/bulkchangesearch.html templates/layerindex/classes.html templates/layerindex/classicrecipes.html +7 more+20 -00 replies
5/10Refactor usage of django.conf.urlslayerindex/urls.py layerindex/urls_branch.py rrs/urls.py +1 more+88 -920 replies
6/10Dockerfile: drop python3-pilDockerfile+0 -10 replies
7/10requirements.txt: upgrade all to latestrequirements.txt+16 -160 replies
8/10requirements.txt: update dependenciesrequirements.txt+12 -00 replies
9/10password_validation.py: fix deprecated ugettextpassword_validation.py+1 -10 replies
10/10docker/settings.py: add CSRF_TRUSTED_ORIGINSdocker/settings.py+1 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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