From 00606cd3ebe6429d932aaef2e132fa16a4de9721 Mon Sep 17 00:00:00 2001 From: vidhan-05 Date: Sun, 22 Jun 2025 16:30:01 +0530 Subject: [PATCH] Add warning for outdated Django versions with link to latest stable release --- docs/templates/docs/doc.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/templates/docs/doc.html b/docs/templates/docs/doc.html index 44ec5a7076..b4597f667f 100644 --- a/docs/templates/docs/doc.html +++ b/docs/templates/docs/doc.html @@ -46,8 +46,11 @@ {% trans "This document is for a preview release of Django, which can be significantly different from previous releases. For older releases, use the version selector floating in the bottom right corner of this page." %} {% elif not release.is_supported %} + {% url 'document-detail' lang='en' version='stable' url=docurl host='docs' as latest_url %}
- {% trans "This document is for an insecure version of Django that is no longer supported. Please upgrade to a newer release!" %} + {% blocktrans with link='here'|safe %} + This document is for an insecure version of Django that is no longer supported. Please click {{ link }} for the latest version. + {% endblocktrans %}
{% endif %} {% endblock body_extra %}