From c2d9e294d21973386c30745b2d802c7aa69f7b3d Mon Sep 17 00:00:00 2001 From: David del Real Sifuentes Date: Wed, 20 May 2026 17:07:30 +0000 Subject: [PATCH 1/2] Updating django instances and some of it dependencies. --- appengine/flexible/django_cloudsql/requirements-test.txt | 2 +- appengine/flexible/django_cloudsql/requirements.txt | 4 ++-- appengine/flexible/hello_world_django/requirements.txt | 2 +- .../bundled-services/blobstore/django/requirements.txt | 5 ++--- .../bundled-services/deferred/django/requirements.txt | 6 ++---- .../bundled-services/mail/django/requirements.txt | 6 ++---- appengine/standard_python3/django/requirements.txt | 6 ++---- kubernetes_engine/django_tutorial/requirements.txt | 1 - run/django/requirements-test.txt | 2 +- run/django/requirements.txt | 5 ++--- 10 files changed, 15 insertions(+), 24 deletions(-) diff --git a/appengine/flexible/django_cloudsql/requirements-test.txt b/appengine/flexible/django_cloudsql/requirements-test.txt index 75ff3b9675d..03bce874e92 100644 --- a/appengine/flexible/django_cloudsql/requirements-test.txt +++ b/appengine/flexible/django_cloudsql/requirements-test.txt @@ -1,2 +1,2 @@ pytest==9.0.3; python_version >= "3.10" -pytest-django==4.9.0 +pytest-django==4.12.0 diff --git a/appengine/flexible/django_cloudsql/requirements.txt b/appengine/flexible/django_cloudsql/requirements.txt index da90b09edaa..11fefcac54d 100644 --- a/appengine/flexible/django_cloudsql/requirements.txt +++ b/appengine/flexible/django_cloudsql/requirements.txt @@ -1,6 +1,6 @@ -Django==6.0.1; python_version >= "3.12" +Django==6.0.5; python_version >= "3.12" gunicorn==23.0.0 psycopg2-binary==2.9.11 -django-environ==0.12.0 +django-environ==0.13.0 google-cloud-secret-manager==2.21.1 django-storages[google]==1.14.6 diff --git a/appengine/flexible/hello_world_django/requirements.txt b/appengine/flexible/hello_world_django/requirements.txt index a7f029a554d..c5f14c7e33d 100644 --- a/appengine/flexible/hello_world_django/requirements.txt +++ b/appengine/flexible/hello_world_django/requirements.txt @@ -1,2 +1,2 @@ -Django==6.0.1; python_version >= "3.12" +Django==6.0.5; python_version >= "3.12" gunicorn==23.0.0 diff --git a/appengine/standard_python3/bundled-services/blobstore/django/requirements.txt b/appengine/standard_python3/bundled-services/blobstore/django/requirements.txt index 0dca8b45f05..5d719f78788 100644 --- a/appengine/standard_python3/bundled-services/blobstore/django/requirements.txt +++ b/appengine/standard_python3/bundled-services/blobstore/django/requirements.txt @@ -1,5 +1,4 @@ -Django==5.1.15; python_version >= "3.10" -Django==4.2.16; python_version < "3.10" -django-environ==0.10.0 +Django==6.0.5; python_version >= "3.12" +django-environ==0.13.0 google-cloud-logging==3.5.0 appengine-python-standard>=0.2.3 diff --git a/appengine/standard_python3/bundled-services/deferred/django/requirements.txt b/appengine/standard_python3/bundled-services/deferred/django/requirements.txt index be7bb5d29a8..c99a837b0b2 100644 --- a/appengine/standard_python3/bundled-services/deferred/django/requirements.txt +++ b/appengine/standard_python3/bundled-services/deferred/django/requirements.txt @@ -1,6 +1,4 @@ -Django==5.1.7; python_version >= "3.10" -Django==4.2.16; python_version >= "3.8" and python_version < "3.10" -Django==3.2.25; python_version < "3.8" -django-environ==0.10.0 +Django==6.0.5; python_version >= "3.12" +django-environ==0.13.0 google-cloud-logging==3.5.0 appengine-python-standard>=0.3.1 diff --git a/appengine/standard_python3/bundled-services/mail/django/requirements.txt b/appengine/standard_python3/bundled-services/mail/django/requirements.txt index d5731eb8861..5d719f78788 100644 --- a/appengine/standard_python3/bundled-services/mail/django/requirements.txt +++ b/appengine/standard_python3/bundled-services/mail/django/requirements.txt @@ -1,6 +1,4 @@ -Django==5.1.15; python_version >= "3.10" -Django==4.2.16; python_version >= "3.8" and python_version < "3.10" -Django==3.2.25; python_version < "3.8" -django-environ==0.10.0 +Django==6.0.5; python_version >= "3.12" +django-environ==0.13.0 google-cloud-logging==3.5.0 appengine-python-standard>=0.2.3 diff --git a/appengine/standard_python3/django/requirements.txt b/appengine/standard_python3/django/requirements.txt index 60b4408e6b4..13185477a1c 100644 --- a/appengine/standard_python3/django/requirements.txt +++ b/appengine/standard_python3/django/requirements.txt @@ -1,6 +1,4 @@ -Django==5.1.15; python_version >= "3.10" -Django==4.2.17; python_version >= "3.8" and python_version < "3.10" -Django==3.2.25; python_version < "3.8" -django-environ==0.10.0 +Django==6.0.5; python_version >= "3.12" +django-environ==0.13.0 psycopg2-binary==2.9.9 google-cloud-secret-manager==2.16.1 diff --git a/kubernetes_engine/django_tutorial/requirements.txt b/kubernetes_engine/django_tutorial/requirements.txt index df3b50126a0..771d0bcd1c5 100644 --- a/kubernetes_engine/django_tutorial/requirements.txt +++ b/kubernetes_engine/django_tutorial/requirements.txt @@ -4,6 +4,5 @@ Django==6.0.1; python_version >= "3.12" #mysqlclient==1.4.1 wheel==0.40.0 gunicorn==23.0.0; python_version > '3.0' -gunicorn==23.0.0; python_version < '3.0' # psycopg2==2.8.4 # uncomment if you prefer to build from source psycopg2-binary==2.9.11 diff --git a/run/django/requirements-test.txt b/run/django/requirements-test.txt index f0788b7f90e..673ee1fac4b 100644 --- a/run/django/requirements-test.txt +++ b/run/django/requirements-test.txt @@ -1,4 +1,4 @@ backoff==2.2.1 pytest==9.0.3; python_version >= "3.10" -pytest-django==4.9.0 +pytest-django==4.12.0 requests==2.31.0 diff --git a/run/django/requirements.txt b/run/django/requirements.txt index 92897c3072e..c99d4885cdb 100644 --- a/run/django/requirements.txt +++ b/run/django/requirements.txt @@ -1,7 +1,6 @@ -Django==5.2.5; python_version >= "3.10" -Django==4.2.24; python_version >= "3.8" and python_version < "3.10" +Django==6.0.5; python_version >= "3.12" django-storages[google]==1.14.6 -django-environ==0.12.0 +django-environ==0.13.0 psycopg2-binary==2.9.10 gunicorn==23.0.0 google-cloud-secret-manager==2.21.1 From bba1f4a261ea8df7ab086e686e1b7d6e4ae921ff Mon Sep 17 00:00:00 2001 From: David del Real Sifuentes Date: Tue, 2 Jun 2026 19:42:33 +0000 Subject: [PATCH 2/2] Modified ignored version for django samples since oldest supported version is python 3.12. --- appengine/flexible/django_cloudsql/noxfile_config.py | 2 +- appengine/flexible/hello_world_django/noxfile_config.py | 2 +- .../bundled-services/blobstore/django/noxfile_config.py | 2 +- .../bundled-services/deferred/django/noxfile_config.py | 2 +- .../bundled-services/mail/django/noxfile_config.py | 2 +- appengine/standard_python3/django/noxfile_config.py | 2 +- run/django/noxfile_config.py | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/appengine/flexible/django_cloudsql/noxfile_config.py b/appengine/flexible/django_cloudsql/noxfile_config.py index 4f10cf1a8f6..fcf35546eb1 100644 --- a/appengine/flexible/django_cloudsql/noxfile_config.py +++ b/appengine/flexible/django_cloudsql/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], + "ignored_versions": ["3.8", "3.9", "3.10", "3.11", "3.13"], # An envvar key for determining the project id to use. Change it # to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a # build specific Cloud project. You can also use your own string diff --git a/appengine/flexible/hello_world_django/noxfile_config.py b/appengine/flexible/hello_world_django/noxfile_config.py index 949abebe3ea..132eb22ce81 100644 --- a/appengine/flexible/hello_world_django/noxfile_config.py +++ b/appengine/flexible/hello_world_django/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], + "ignored_versions": ["3.8", "3.9", "3.10", "3.11", "3.13"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/appengine/standard_python3/bundled-services/blobstore/django/noxfile_config.py b/appengine/standard_python3/bundled-services/blobstore/django/noxfile_config.py index 99047da44a9..57986117068 100644 --- a/appengine/standard_python3/bundled-services/blobstore/django/noxfile_config.py +++ b/appengine/standard_python3/bundled-services/blobstore/django/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], + "ignored_versions": ["3.8", "3.9", "3.10", "3.11", "3.13"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/appengine/standard_python3/bundled-services/deferred/django/noxfile_config.py b/appengine/standard_python3/bundled-services/deferred/django/noxfile_config.py index 99047da44a9..57986117068 100644 --- a/appengine/standard_python3/bundled-services/deferred/django/noxfile_config.py +++ b/appengine/standard_python3/bundled-services/deferred/django/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], + "ignored_versions": ["3.8", "3.9", "3.10", "3.11", "3.13"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/appengine/standard_python3/bundled-services/mail/django/noxfile_config.py b/appengine/standard_python3/bundled-services/mail/django/noxfile_config.py index 99047da44a9..57986117068 100644 --- a/appengine/standard_python3/bundled-services/mail/django/noxfile_config.py +++ b/appengine/standard_python3/bundled-services/mail/django/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], + "ignored_versions": ["3.8", "3.9", "3.10", "3.11", "3.13"], # Old samples are opted out of enforcing Python type hints # All new samples should feature them "enforce_type_hints": False, diff --git a/appengine/standard_python3/django/noxfile_config.py b/appengine/standard_python3/django/noxfile_config.py index 2e8aab8cdeb..ec3c324af4a 100644 --- a/appengine/standard_python3/django/noxfile_config.py +++ b/appengine/standard_python3/django/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], + "ignored_versions": ["3.8", "3.9", "3.10", "3.11", "3.13"], # An envvar key for determining the project id to use. Change it # to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a # build specific Cloud project. You can also use your own string diff --git a/run/django/noxfile_config.py b/run/django/noxfile_config.py index 530fda35d75..6983e56116f 100644 --- a/run/django/noxfile_config.py +++ b/run/django/noxfile_config.py @@ -22,7 +22,7 @@ TEST_CONFIG_OVERRIDE = { # You can opt out from the test for specific Python versions. - "ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"], + "ignored_versions": ["3.8", "3.9", "3.10", "3.11", "3.13"], # Old samples are opted out of enforcing Python type hints # All new samples should feature the "enforce_type_hints": True,