From b322bd1c550098e188cad91a53dcd24400b4af07 Mon Sep 17 00:00:00 2001 From: realpython-bot <42617967+realpython-bot@users.noreply.github.com> Date: Fri, 16 Oct 2026 17:48:00 +0000 Subject: [PATCH] Update python-web-applications to Flask 3.1.3 and python313 Google App Engine decommissioned the python38 runtime, so app.yaml now targets python313, matching the updated tutorial. Pin Flask 3.1.3 and refresh the README's dev-server output to what Flask 3.1.3 prints. --- python-web-applications/README.md | 11 +++++------ python-web-applications/app.yaml | 2 +- python-web-applications/requirements.txt | 2 +- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/python-web-applications/README.md b/python-web-applications/README.md index 680e0a21f0..b78e557744 100644 --- a/python-web-applications/README.md +++ b/python-web-applications/README.md @@ -22,15 +22,14 @@ Start the Flask server: ```shell (venv) $ python main.py - * Serving Flask app "main" (lazy loading) - * Environment: production - WARNING: This is a development server. Do not use it in a production deployment. - Use a production WSGI server instead. + * Serving Flask app 'main' * Debug mode: on - * Running on http://127.0.0.1:8080/ (Press CTRL+C to quit) +WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. + * Running on http://127.0.0.1:8080 +Press CTRL+C to quit * Restarting with stat * Debugger is active! - * Debugger PIN: 339-986-221 + * Debugger PIN: 936-229-353 ``` Navigate your web browser to this address: diff --git a/python-web-applications/app.yaml b/python-web-applications/app.yaml index a0b5f22d0b..aa917e62ea 100644 --- a/python-web-applications/app.yaml +++ b/python-web-applications/app.yaml @@ -1 +1 @@ -runtime: python38 \ No newline at end of file +runtime: python313 diff --git a/python-web-applications/requirements.txt b/python-web-applications/requirements.txt index 7d47fc5fed..af266d21cd 100644 --- a/python-web-applications/requirements.txt +++ b/python-web-applications/requirements.txt @@ -1 +1 @@ -Flask==2.1.2 +Flask==3.1.3