diff mbox series

[error-report-web,1/3] Upgrade to Django 5.2.

Message ID 20261018014924.73070-3-tim.orling@konsulko.com
State New
Headers show
Series Upgrade to Django 5.2 | expand

Commit Message

Tim Orling Oct. 18, 2026, 1:47 a.m. UTC
Django 4.2.30 has 7 known vulnerabilities, fixed in 5.2.18. Pin the
other requirements to the installed versions. Drop USE_L10N, removed in
5.0, and AUTH_PROFILE_MODULE, unused since 1.7. No migrations needed.

[YOCTO #16458]

AI-Generated: Claude Opus 5.5
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
---
 project/settings.py        |  6 ------
 project/settings.py.docker |  6 ------
 requirements.txt           | 10 +++++-----
 3 files changed, 5 insertions(+), 17 deletions(-)
diff mbox series

Patch

diff --git a/project/settings.py b/project/settings.py
index 1ec6891..bc63c49 100644
--- a/project/settings.py
+++ b/project/settings.py
@@ -87,10 +87,6 @@  SITE_ID = 1
 # to load the internationalization machinery.
 USE_I18N = True
 
-# If you set this to False, Django will not format dates, numbers and
-# calendars according to the current locale.
-USE_L10N = True
-
 # If you set this to False, Django will not use timezone-aware datetimes.
 USE_TZ = True
 
@@ -218,8 +214,6 @@  TEMPLATE_CONTEXT_PROCESSORS = (
   'Post.views.common_context',
 )
 
-AUTH_PROFILE_MODULE = 'registration.RegistrationProfile'
-
 BUGZILLA_URL = 'https://bugzilla.yoctoproject.org'
 
 ACCOUNT_ACTIVATION_DAYS = 2
diff --git a/project/settings.py.docker b/project/settings.py.docker
index 9f98715..680b485 100644
--- a/project/settings.py.docker
+++ b/project/settings.py.docker
@@ -81,10 +81,6 @@  SITE_ID = 1
 # to load the internationalization machinery.
 USE_I18N = True
 
-# If you set this to False, Django will not format dates, numbers and
-# calendars according to the current locale.
-USE_L10N = True
-
 # If you set this to False, Django will not use timezone-aware datetimes.
 USE_TZ = True
 
@@ -212,8 +208,6 @@  TEMPLATE_CONTEXT_PROCESSORS = (
   'Post.views.common_context',
 )
 
-AUTH_PROFILE_MODULE = 'registration.RegistrationProfile'
-
 BUGZILLA_URL = 'https://bugzilla.yoctoproject.org'
 
 ACCOUNT_ACTIVATION_DAYS = 2
diff --git a/requirements.txt b/requirements.txt
index 920d9d0..f5022da 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,5 +1,5 @@ 
-Django<4.3
-python-Levenshtein
-bleach
-mysqlclient
-django-registration
+Django>=5.2.18,<5.3
+python-Levenshtein==0.27.4
+bleach==6.4.0
+mysqlclient==2.3.0
+django-registration==5.2.1