chore(deps): update dependency django to v5.2.4 by renovate-bot · Pull Request #13486 · GoogleCloudPlatform/python-docs-samples · GitHub | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
Skip to content

chore(deps): update dependency django to v5.2.4 #13486

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 3, 2025

Conversation

renovate-bot
Copy link
Contributor

This PR contains the following updates:

Package Change Age Confidence
Django (changelog) ==4.2.23 -> ==5.2.4 age confidence
Django (changelog) ==5.2.3 -> ==5.2.4 age confidence

Release Notes

django/django (Django)

v5.2.4

Compare Source

v5.2.3

Compare Source

v5.2.2

Compare Source

v5.2.1

Compare Source

v5.2

Compare Source

v5.1.11

Compare Source

v5.1.10

Compare Source

v5.1.9

Compare Source

v5.1.8

Compare Source

v5.1.7

Compare Source

v5.1.6

Compare Source

v5.1.5

Compare Source

v5.1.4

Compare Source

v5.1.3

Compare Source

v5.1.2

Compare Source

v5.1.1

Compare Source

v5.1

Compare Source

v5.0.14

Compare Source

v5.0.13

Compare Source

v5.0.12

Compare Source

v5.0.11

Compare Source

v5.0.10

Compare Source

v5.0.9

Compare Source

v5.0.8

Compare Source

v5.0.7

Compare Source

v5.0.6

Compare Source

v5.0.5

Compare Source

v5.0.4

Compare Source

v5.0.3

Compare Source

v5.0.2

Compare Source

v5.0.1

Compare Source

v5.0

Compare Source


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Never, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate-bot renovate-bot requested review from a team as code owners July 3, 2025 00:56
@trusted-contributions-gcf trusted-contributions-gcf bot added kokoro:force-run Add this label to force Kokoro to re-run the tests. owlbot:run Add this label to trigger the Owlbot post processor. labels Jul 3, 2025
@product-auto-label product-auto-label bot added samples Issues that are directly related to samples. api: appengine Issues related to the App Engine Admin API API. api: container Issues related to the Kubernetes Engine API API. api: run Issues related to the Cloud Run API. labels Jul 3, 2025
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Summary of Changes

Hello @renovate-bot, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request aims to standardize and update the Django dependency across various sample applications within the repository. The primary objective is to bring all relevant projects to the latest stable patch release, Django 5.2.4, ensuring they benefit from the latest bug fixes and security updates. This involves both minor patch updates and, in some cases, a significant major version upgrade from Django 4.x to 5.x, which will require careful validation to ensure compatibility.

Highlights

  • Dependency Update: This pull request updates the Django package to version 5.2.4 across several sample application requirements.txt files.
  • Major Version Upgrade: For the kubernetes_engine/django_tutorial and run/django samples, the Django dependency for Python versions between 3.8 and 3.10 is upgraded significantly from 4.2.23 to 5.2.4. This major version jump may introduce breaking changes and warrants thorough testing.
  • Minor Version Upgrade: For other affected samples, the Django dependency is updated from 5.2.3 to 5.2.4, which is a patch release update within the same major and minor version series.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments to provide feedback.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 3, 2025
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the Django dependency. While most changes are minor patch updates, the upgrade from Django 4.x to 5.x for some configurations introduces critical compatibility issues with older Python versions. Django 5.x requires Python 3.10+, but several samples are configured to run or be tested on older Python versions (like 3.7, 3.8, 3.9), which will cause installation or runtime failures. I've left comments on the specific requirements.txt files that need to be corrected.

Django==5.2.3; python_version >= "3.10"
Django==4.2.23; python_version >= "3.8" and python_version < "3.10"```
Django==5.2.4; python_version >= "3.10"
Django==5.2.4; python_version >= "3.8" and python_version < "3.10"```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

This change introduces a critical compatibility issue. Django 5.2.4 requires Python 3.10 or newer. By updating this line to Django==5.2.4, you make it impossible to install dependencies on Python 3.8 and 3.9, which this line is supposed to support (python_version >= "3.8" and python_version < "3.10").

Additionally, the trailing ``` on this line appears to be a typo and will likely cause pip to fail. I've removed it in the suggestion.

You should keep a Django 4.2.x version for these older Python versions and fix the typo.

Django==4.2.23; python_version >= "3.8" and python_version < "3.10"

Django==5.2.3; python_version >= "3.10"
Django==4.2.23; python_version >= "3.8" and python_version < "3.10"
Django==5.2.4; python_version >= "3.10"
Django==5.2.4; python_version >= "3.8" and python_version < "3.10"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

This change introduces a critical compatibility issue. Django 5.2.4 requires Python 3.10 or newer. By updating this line to Django==5.2.4, you make it impossible to install dependencies on Python 3.8 and 3.9, which this line is supposed to support (python_version >= "3.8" and python_version < "3.10").

You should keep a Django 4.2.x version for these older Python versions. I'm suggesting reverting this line to its original state.

Django==4.2.23; python_version >= "3.8" and python_version < "3.10"

@@ -1,4 +1,4 @@
Django==5.2.3
Django==5.2.4
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The app.yaml for this sample specifies python_version: 3.7, but Django 5.2.4 requires Python 3.10 or newer. This will cause deployment to fail. While the tests might pass on a newer Python version (e.g., 3.11 as per noxfile_config.py), the application itself is misconfigured. The python_version in app.yaml should be updated to a supported version (3.10+), or Django should be downgraded to a compatible version (e.g., 3.2.x for Python 3.7).

@@ -1,2 +1,2 @@
Django==5.2.3
Django==5.2.4
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

This project's test configuration (noxfile_config.py) includes Python versions 3.8 and 3.9, but Django 5.2.4 requires Python 3.10 or newer. This dependency update will cause tests to fail on those Python versions. You should either drop support for Python < 3.10 in the test configuration or use conditional dependencies to install a compatible Django version for older Python versions.

@@ -1,4 +1,4 @@
Django==5.2.3
Django==5.2.4
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

This sample is configured for Python 3.7 (as per app.yaml), but Django 5.2.4 requires Python 3.10 or newer. This dependency was already incorrect at version 5.2.3, and this update does not fix the underlying issue. The sample will not work with this Django version on the specified Python runtime. The last Django version to support Python 3.7 was Django 3.2.x.

@@ -1,2 +1,2 @@
Django==5.2.3
Django==5.2.4
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

This sample appears to be configured to run on Python 3.7 (based on noxfile_config.py), but Django 5.2.4 requires Python 3.10 or newer. This dependency was already incorrect at version 5.2.3. While this PR only applies a patch update, the sample will not work with this Django version on older Python runtimes. The last Django version to support Python 3.7 was Django 3.2.x.

@glasnt glasnt assigned glasnt and unassigned jinglundong Jul 3, 2025
@trusted-contributions-gcf trusted-contributions-gcf bot added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 3, 2025
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 3, 2025
Copy link

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@glasnt glasnt merged commit 22701f1 into GoogleCloudPlatform:main Jul 3, 2025
11 checks passed
@renovate-bot renovate-bot deleted the renovate/django-5.x branch July 3, 2025 05:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: appengine Issues related to the App Engine Admin API API. api: container Issues related to the Kubernetes Engine API API. api: run Issues related to the Cloud Run API. owlbot:run Add this label to trigger the Owlbot post processor. samples Issues that are directly related to samples.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.