richie
richie copied to clipboard
⬆️(backend) upgrade to Django 4.x (4.0, 4.1, <5)
Purpose
From Django version 3.2.25 to 4.0 : The project was using Django 3.2.25, it now uses Django 4.0, this involved :
- upgrading postgres image to version 12 (drop support for postgres < 12)
- shift from
pytzlibrary todatetime.timezoneinstead. - updated the template tags
{% ifequal %}in favor of{% if %}. -
USE_L1ONis deprecated in settings if value isTrue
From Django 4.0 to 4.1 :
- Update project.toml file to pin version to 4.1 of Django.
- Adjust admin view tests
From Django 4.1 to 4.2:
- Update project.toml file to pin version Django <5
- Change staticfile settings constant in configuration file.
- Dropped support for mysql < 8
- Dropped circleci test-back-msql-5
Proposal
- resources :
- https://docs.djangoproject.com/en/5.0/releases/4.0/
- https://docs.djangoproject.com/en/5.0/releases/4.1/
- https://docs.djangoproject.com/en/5.0/releases/4.2/