richie icon indicating copy to clipboard operation
richie copied to clipboard

⬆️(backend) upgrade to Django 4.x (4.0, 4.1, <5)

Open jonathanreveille opened this issue 1 year ago • 0 comments

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 pytz library to datetime.timezone instead.
  • updated the template tags {% ifequal %} in favor of {% if %}.
  • USE_L1ON is deprecated in settings if value is True

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 :
  1. https://docs.djangoproject.com/en/5.0/releases/4.0/
  2. https://docs.djangoproject.com/en/5.0/releases/4.1/
  3. https://docs.djangoproject.com/en/5.0/releases/4.2/

jonathanreveille avatar May 03 '24 16:05 jonathanreveille