From 18ec4c354cd62f637ef3855f741527afe9ca5860 Mon Sep 17 00:00:00 2001 From: realpython-bot Date: Fri, 28 Aug 2026 13:03:45 +0000 Subject: [PATCH] Update primer-on-jinja-templating pins to match the tutorial The tutorial "Primer on Jinja Templating" was refreshed in the CMS and now declares Flask 3.1.3 / Jinja2 3.1.6 on Python 3.14. This file still pinned the 2024 set, so the materials built a different environment than the article describes. blinker 1.8.2 -> 1.9.0 click 8.1.7 -> 8.5.0 Flask 3.0.3 -> 3.1.3 Jinja2 3.1.4 -> 3.1.6 MarkupSafe 2.1.5 -> 3.0.3 Werkzeug 3.0.3 -> 3.1.8 itsdangerous stays at 2.2.0, its current release. The transitive bumps are required, not cosmetic: Flask 3.1.3 needs Werkzeug>=3.1, so pinning Flask forward while leaving Werkzeug at 3.0.3 would be an inconsistent set. The versions here are what the resolver picks for Flask==3.1.3 plus Jinja2==3.1.6 on Python 3.14. Verified by running app.py under these pins: both routes return 200 and /results renders the five students ordered by name, matching the article's final results.html. No template or app.py changes -- the content audit raised no code issues for this article. Co-Authored-By: Claude Opus 5 (1M context) --- primer-on-jinja-templating/requirements.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/primer-on-jinja-templating/requirements.txt b/primer-on-jinja-templating/requirements.txt index 3ce1148dd4..5fee096510 100644 --- a/primer-on-jinja-templating/requirements.txt +++ b/primer-on-jinja-templating/requirements.txt @@ -1,7 +1,7 @@ -blinker==1.8.2 -click==8.1.7 -Flask==3.0.3 +blinker==1.9.0 +click==8.5.0 +Flask==3.1.3 itsdangerous==2.2.0 -Jinja2==3.1.4 -MarkupSafe==2.1.5 -Werkzeug==3.0.3 +Jinja2==3.1.6 +MarkupSafe==3.0.3 +Werkzeug==3.1.8