summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2025-11-28 15:03:48 +0100
committerSaptak Sengupta <saptak013@gmail.com>2025-12-18 15:22:30 +0530
commita29ae32066bf63d2dfabaefe9ea227d4cb63fc0f (patch)
treea297790a733954c4b83fcf35a6fd41fadfad099c
parent114ffb4627710067e6b832e0ae68d02d97fd40e7 (diff)
Removed relative urls.
-rw-r--r--djangoproject/templates/aggregator/ecosystem.html8
-rw-r--r--djangoproject/templates/aggregator/index.html4
-rw-r--r--djangoproject/templates/base_community.html8
-rw-r--r--djangoproject/templates/base_foundation.html10
-rw-r--r--djangoproject/templates/base_weblog.html4
-rw-r--r--djangoproject/templates/fundraising/index.html27
-rw-r--r--djangoproject/templates/homepage.html12
-rw-r--r--djangoproject/templates/includes/footer.html8
-rw-r--r--djangoproject/templates/members/corporate_member_badges.html3
-rw-r--r--djangoproject/templates/members/corporatemember_list.html5
-rw-r--r--djangoproject/templates/members/team_list.html3
-rw-r--r--djangoproject/templates/releases/download.html2
-rw-r--r--djangoproject/templates/releases/roadmap.html12
-rw-r--r--docs/templates/docs/doc.html2
-rw-r--r--members/forms.py8
-rw-r--r--releases/tests.py10
16 files changed, 63 insertions, 63 deletions
diff --git a/djangoproject/templates/aggregator/ecosystem.html b/djangoproject/templates/aggregator/ecosystem.html
index 91b6296c..77c98723 100644
--- a/djangoproject/templates/aggregator/ecosystem.html
+++ b/djangoproject/templates/aggregator/ecosystem.html
@@ -1,5 +1,5 @@
{% extends "base_community.html" %}
-{% load i18n %}
+{% load i18n hosts %}
{% block content %}
@@ -139,7 +139,7 @@
<ul>
<li>
<a href="https://tutorial.djangogirls.org/">DjangoGirls Tutorial</a>
- &mdash; A great tutorial you can do in addition to the <a href="/en/dev/intro/tutorial/01/">official tutorial</a>.
+ &mdash; A great tutorial you can do in addition to the <a href="{% url 'document-detail' lang='en' version='stable' url='intro/tutorial/01/' host 'docs' %}">official tutorial</a>.
</li>
</ul>
@@ -152,10 +152,10 @@
<a href="https://builtwithdjango.com/projects/" rel="nofollow">Django-powered sites</a>
</li>
<li>
- <a href="/community/badges/">Show your support with badges</a>
+ <a href="{% host_url "homepage" host "www" %}community/badges/">Show your support with badges</a>
</li>
<li>
- <a href="/community/logos/">Download official logos</a>
+ <a href="{% host_url "homepage" host "www" %}community/logos/">Download official logos</a>
</li>
</ul>
diff --git a/djangoproject/templates/aggregator/index.html b/djangoproject/templates/aggregator/index.html
index 1995312f..064e260a 100644
--- a/djangoproject/templates/aggregator/index.html
+++ b/djangoproject/templates/aggregator/index.html
@@ -39,7 +39,7 @@
<h2 class="community-title">{% translate "Get Involved" %}</h2>
<div class="community-cta-wrapper">
- <a href="https://docs.djangoproject.com/en/dev/internals/contributing/bugs-and-features/#reporting-bugs" class="community-cta-a">
+ <a href="{% url 'document-detail' lang='en' version='dev' url='internals/contributing/bugs-and-features' host 'docs' %}#reporting-bugs" class="community-cta-a">
<div class="community-cta">
<div>
{% include "svg_logos/bug.html" %}
@@ -47,7 +47,7 @@
<h3>{% translate "Report an issue" %}</h3>
</div>
</a>
- <a href="https://docs.djangoproject.com/en/dev/internals/contributing/" class="community-cta-a">
+ <a href="{% url 'document-detail' lang='en' version='dev' url='internals/contributing' host 'docs' %}" class="community-cta-a">
<div class="community-cta">
<div>
{% include "svg_logos/notepad.html" %}
diff --git a/djangoproject/templates/base_community.html b/djangoproject/templates/base_community.html
index 4ea2144c..7df7414a 100644
--- a/djangoproject/templates/base_community.html
+++ b/djangoproject/templates/base_community.html
@@ -1,5 +1,5 @@
{% extends "base.html" %}
-{% load fundraising_extras i18n %}
+{% load fundraising_extras i18n hosts %}
{% block og_title %}{% translate "Django Community" %}{% endblock %}
{% block og_description %}{% translate "Building the Django Community. Come join us!" %}{% endblock %}
@@ -48,7 +48,7 @@
<dl class="list-links">
<dt><a href="https://code.djangoproject.com/">{% translate "Ticket System" %}</a></dt>
<dd>{% translate "View and update bug reports" %}</dd>
- <dt><a href="https://dashboard.djangoproject.com/">{% translate "Development Dashboard" %}</a></dt>
+ <dt><a href="{% host_url 'dashboard-index' host 'dashboard' %}">{% translate "Development Dashboard" %}</a></dt>
<dd>{% translate "Statistics about Django development" %}</dd>
<dt><a href="https://groups.google.com/group/django-updates">{% translate "django-updates Mailing List" %}</a></dt>
<dd>{% translate "Get updated for each code and ticket change" %}</dd>
@@ -60,9 +60,9 @@
<dd>{% translate "Find third-party packages to supercharge your project" %}</dd>
<dt><a href="https://builtwithdjango.com/projects/" rel="nofollow">{% translate "Django-powered Sites" %}</a></dt>
<dd>{% translate "Add your site to the list" %}</dd>
- <dt><a href="/community/badges/">{% translate "Django Badges" %}</a></dt>
+ <dt><a href="{% host_url "homepage" host "www" %}community/badges/">{% translate "Django Badges" %}</a></dt>
<dd>{% translate "Show your support (or wish longingly)" %}</dd>
- <dt><a href="/community/logos/">{% translate "Django Logos" %}</a></dt>
+ <dt><a href="{% host_url "homepage" host "www" %}community/logos/">{% translate "Django Logos" %}</a></dt>
<dd>{% translate "Download official logos" %}</dd>
</dl>
</div>
diff --git a/djangoproject/templates/base_foundation.html b/djangoproject/templates/base_foundation.html
index c7b1eb64..49904c1b 100644
--- a/djangoproject/templates/base_foundation.html
+++ b/djangoproject/templates/base_foundation.html
@@ -1,5 +1,5 @@
{% extends "base.html" %}
-{% load fundraising_extras meetings i18n %}
+{% load fundraising_extras meetings i18n hosts %}
{% block og_title %}Django Software Foundation{% endblock %}
@@ -22,11 +22,11 @@
<h3>About the foundation</h3>
<ul class="list-links">
- <li><a href="/foundation/faq/">FAQ</a></li>
- <li><a href="/foundation/records/">Records</a></li>
+ <li><a href="{% host_url 'homepage' host 'www' %}foundation/faq/">FAQ</a></li>
+ <li><a href="{% host_url 'homepage' host 'www' %}foundation/records/">Records</a></li>
<li><a href="{% url 'contact_foundation' %}">Contact us</a></li>
- <li><a href="/foundation/cla/">Contributor license agreements</a></li>
- <li><a href="/foundation/conferences/">Organizing a Django conference</a></li>
+ <li><a href="{% host_url 'homepage' host 'www' %}foundation/cla/">Contributor license agreements</a></li>
+ <li><a href="{% host_url 'homepage' host 'www' %}foundation/conferences/">Organizing a Django conference</a></li>
</ul>
<h3>{% translate "Latest DSF meeting minutes" %}</h3>
<p> {% translate "The minutes from May 2025 onwards are stored in the repo" %}
diff --git a/djangoproject/templates/base_weblog.html b/djangoproject/templates/base_weblog.html
index dc672dc2..08c975e7 100644
--- a/djangoproject/templates/base_weblog.html
+++ b/djangoproject/templates/base_weblog.html
@@ -1,5 +1,5 @@
{% extends "base.html" %}
-{% load fundraising_extras i18n weblog %}
+{% load fundraising_extras i18n weblog hosts %}
{% block layout_class %}sidebar-right{% endblock %}
{% block title %}{% translate "News &amp; Events" %}{% endblock %}
@@ -34,7 +34,7 @@
{% endfor %}
</ul>
{% endif %}
- <p><a href="/foundation/conferences/">{% translate "Want your event listed here?" %}</a></p>
+ <p><a href="{% host_url 'homepage' host 'www' %}foundation/conferences/">{% translate "Want your event listed here?" %}</a></p>
{% comment %}
{# tags not implemented in backend yet #}
diff --git a/djangoproject/templates/fundraising/index.html b/djangoproject/templates/fundraising/index.html
index c470f155..fe3d19e4 100644
--- a/djangoproject/templates/fundraising/index.html
+++ b/djangoproject/templates/fundraising/index.html
@@ -1,5 +1,5 @@
{% extends 'base.html' %}
-{% load fundraising_extras humanize i18n static %}
+{% load fundraising_extras humanize i18n static hosts %}
{% block title %}{% translate "Support Django" %}{% endblock %}
{% block layout_class %}full-width{% endblock %}
@@ -42,8 +42,9 @@
</li>
<li><a href="https://github.com/sponsors/django" target="_blank">{% translate "Sponsor Django via GitHub Sponsors" %}</a>.</li>
<li>
+ {% url 'fundraising:index' as fundraising_url %}
{% blocktranslate trimmed %}
- <a href="/foundation/donate/#benevity-giving">Benevity Workplace Giving
+ <a href="{{ fundraising_url }}#benevity-giving">Benevity Workplace Giving
Program</a> - If your employer participates, you can make donations to the
DSF via payroll deduction.
{% endblocktranslate %}
@@ -89,7 +90,7 @@
<p>
{% blocktranslate trimmed %}
- Still curious? See our <a href="/foundation/donate/">Frequently Asked Questions</a>
+ Still curious? See our <a href="{{ fundraising_url }}">Frequently Asked Questions</a>
about donations.
{% endblocktranslate %}
</p>
@@ -118,12 +119,13 @@
</p>
<p>
+ {% host_url 'homepage' host 'www' as base_url %}
{% blocktranslate trimmed %}
For more details, you can read retrospectives for the
- <a href="/weblog/2015/jan/21/django-fellowship-retrospective/"> first three
+ <a href="{{ base_url }}weblog/2015/jan/21/django-fellowship-retrospective/"> first three
months of the program</a>,
- <a href="/weblog/2015/dec/17/fellowship-2015-retrospective/">2015</a>, and
- <a href="/weblog/2016/dec/28/fellowship-2016-retrospective/">2016</a>.
+ <a href="{{ base_url }}weblog/2015/dec/17/fellowship-2015-retrospective/">2015</a>, and
+ <a href="{{ base_url }}weblog/2016/dec/28/fellowship-2016-retrospective/">2016</a>.
{% endblocktranslate %}
</p>
@@ -144,7 +146,7 @@
<p>
{% blocktranslate trimmed %}
<strong>If you use Django on a daily basis and care about the development of Django
- itself, you should donate today</strong> (may be <a href="/foundation/donate/#tax-deductible">tax deductible</a>).
+ itself, you should donate today</strong> (may be <a href="{{ fundraising_url }}#tax-deductible">tax deductible</a>).
Only with your support can we make sure that the web framework you base your work on
can grow to be even better in the coming years.
{% endblocktranslate %}
@@ -249,15 +251,16 @@
<div class="layout-tertiary" id="about">
<div class="container">
<h2>{% translate "What is the Django Software Foundation?" %}</h2>
+ {% host_url 'homepage' host 'www' as base_url %}
<p>
{% blocktranslate trimmed %}
Development of Django is supported by an independent foundation
established as a 501(c)(3) non-profit. Like most open-source foundations,
- the goal of the <a href="/foundation/">Django Software Foundation</a>
+ the goal of the <a href="{{ base_url }}foundation/">Django Software Foundation</a>
is to promote, support, and advance the Django web framework. If you're
interested in how the Django Software Foundation supports the Django
web framework, we published a
- <a href="/weblog/2015/jan/08/django-software-foundation-2014/">
+ <a href="{{ base_url }}weblog/2015/jan/08/django-software-foundation-2014/">
Summary of 2014.
</a>
{% endblocktranslate %}
@@ -274,7 +277,7 @@
team since 2021 and a core committer to Python projects such as
music21, pylint, and <a href="https://archesproject.org/">Arches</a>.
Jacob
- <a href="https://www.djangoproject.com/weblog/2025/aug/11/welcome-our-new-fellow-jacob-tyler-walls/">
+ <a href="{{ base_url }}weblog/2025/aug/11/welcome-our-new-fellow-jacob-tyler-walls/">
began as a full-time Fellow in August 2025</a>.
{% endblocktranslate %}
</p>
@@ -285,7 +288,7 @@
(2024-present)</strong> - an active community member, co-creator of
<a href="https://djangonaut.space">Djangonaut Space</a> and a member of
Django's review and triage team since 2023. Sarah
- <a href="https://www.djangoproject.com/weblog/2024/mar/22/welcome-our-new-fellow-sarah-boyce/">
+ <a href="{{ base_url }}weblog/2024/mar/22/welcome-our-new-fellow-sarah-boyce/">
began as a full-time Fellow in April 2024</a>.
{% endblocktranslate %}
</p>
@@ -297,7 +300,7 @@
experience in architecting, building, and maintaining scalable web
services, as well as leading new feature design and development.
Natalia
- <a href="https://www.djangoproject.com/weblog/2023/mar/31/welcome-our-new-fellow-natalia-bidart/">
+ <a href="{{ base_url }}weblog/2023/mar/31/welcome-our-new-fellow-natalia-bidart/">
began as a part-time Fellow in April 2023</a>.
{% endblocktranslate %}
</p>
diff --git a/djangoproject/templates/homepage.html b/djangoproject/templates/homepage.html
index 3b1ad6b6..23375bb4 100644
--- a/djangoproject/templates/homepage.html
+++ b/djangoproject/templates/homepage.html
@@ -1,5 +1,5 @@
{% extends "base_3col.html" %}
-{% load fundraising_extras i18n weblog %}
+{% load fundraising_extras i18n weblog hosts %}
{% block sectionid %}homepage{% endblock %}
{% block body_class %}homepage{% endblock %}
@@ -141,7 +141,7 @@
<dd>
{% translate "Report bugs and make feature requests" %}
</dd>
- <dt><a href="https://dashboard.djangoproject.com/">{% translate "Development dashboard" %}</a></dt>
+ <dt><a href="{% host_url 'dashboard-index' host 'dashboard' %}">{% translate "Development dashboard" %}</a></dt>
<dd>
{% translate "see what's currently being worked on" %}
</dd>
@@ -163,20 +163,20 @@
<h3>{% translate "The Django Software Foundation" %}</h3>
<dl class="list-links-small">
- <dt><a href="/foundation/">{% translate "About the Foundation" %}</a></dt>
+ <dt><a href="{% host_url "homepage" host "www" %}foundation/">{% translate "About the Foundation" %}</a></dt>
<dd>
{% translate "Our non-profit supports the project" %}
</dd>
- <dt><a href="/foundation/donate/">{% translate "Support Django" %}</a></dt>
+ <dt><a href="{% url 'fundraising:index' %}">{% translate "Support Django" %}</a></dt>
<dd>
{% translate "Your contribution makes Django stronger" %}
</dd>
- <dt><a href="/contact/foundation/">{% translate "Contact the Django Software Foundation" %}</a></dt>
+ <dt><a href="{% host_url "homepage" host "www" %}contact/foundation/">{% translate "Contact the Django Software Foundation" %}</a></dt>
<dd></dd>
</dl>
- <a href="/foundation/" class="link-readmore">{% translate "More about the DSF" %}</a>
+ <a href="{% host_url "homepage" host "www" %}foundation/" class="link-readmore">{% translate "More about the DSF" %}</a>
{% comment %}
<h3>Upcoming Events</h3>
<dl class="list-links-small news-list">
diff --git a/djangoproject/templates/includes/footer.html b/djangoproject/templates/includes/footer.html
index ba995ba2..12d613fd 100644
--- a/djangoproject/templates/includes/footer.html
+++ b/djangoproject/templates/includes/footer.html
@@ -60,9 +60,9 @@
<h3>Support Us</h3>
<ul>
<li><a href="{% url "fundraising:index" %}">Sponsor Django</a></li>
- <li><a href="{% host_url "homepage" host "www" %}foundation/corporate-membership/">Corporate membership</a></li>
+ <li><a href="{% url 'members:corporate-members' %}">Corporate membership</a></li>
<li><a href="https://django.threadless.com/" target="_blank">Official merchandise store</a></li>
- <li><a href="{% host_url "homepage" host "www" %}foundation/donate/#benevity-giving">Benevity Workplace Giving Program</a></li>
+ <li><a href="{% url 'fundraising:index' %}#benevity-giving">Benevity Workplace Giving Program</a></li>
</ul>
</div>
</div>
@@ -82,9 +82,9 @@
<span class="ampersand">&amp;</span> <a class="andrevv" href="http://andrevv.com/">andrevv</a></li>
</ul>
<p class="copyright">&copy; 2005-{% now "Y" %}
- <a href="{% url 'homepage' %}foundation/"> Django Software
+ <a href="{% host_url "homepage" host "www" %}foundation/"> Django Software
Foundation</a> and individual contributors. Django is a
- <a href="{% url 'homepage' %}trademarks/">registered
+ <a href="{% host_url "homepage" host "www" %}trademarks/">registered
trademark</a> of the Django Software Foundation.
</p>
</div>
diff --git a/djangoproject/templates/members/corporate_member_badges.html b/djangoproject/templates/members/corporate_member_badges.html
index 57510656..b4268a3a 100644
--- a/djangoproject/templates/members/corporate_member_badges.html
+++ b/djangoproject/templates/members/corporate_member_badges.html
@@ -30,8 +30,9 @@
{% block content %}
<h1>{% translate "Corporate member badges" %}</h1>
<p>
+ {% url 'members:corporate-members' as corporate_members_url %}
{% blocktranslate trimmed %}
- <a href="/foundation/corporate-membership/">Corporate members</a> of the Django Software Foundation may display
+ <a href="{{ corporate_members_url }}">Corporate members</a> of the Django Software Foundation may display
these badges on their site to show their support.
{% endblocktranslate %}
</p>
diff --git a/djangoproject/templates/members/corporatemember_list.html b/djangoproject/templates/members/corporatemember_list.html
index 6085ca18..513e58a9 100644
--- a/djangoproject/templates/members/corporatemember_list.html
+++ b/djangoproject/templates/members/corporatemember_list.html
@@ -1,5 +1,5 @@
{% extends "base_foundation.html" %}
-{% load humanize i18n %}
+{% load humanize i18n hosts %}
{% block og_title %}{% translate "Corporate members" %}{% endblock %}
{% block og_description %}{% translate "The following organizations are corporate members of the Django Software Foundation." %}{% endblock %}
@@ -7,10 +7,11 @@
{% block content %}
<h1>{% translate "Corporate members" %}</h1>
<p>
+ {% host_url 'homepage' host 'www' as base_url %}
{% blocktranslate trimmed %}
The following organizations are corporate members of the Django Software
Foundation. If you are interested in becoming a corporate member of the
- DSF, you can find out more on our <a href="/foundation/corporate-membership/">
+ DSF, you can find out more on our <a href="{{ base_url }}foundation/corporate-membership/">
corporate membership page</a>.
{% endblocktranslate %}
</p>
diff --git a/djangoproject/templates/members/team_list.html b/djangoproject/templates/members/team_list.html
index acb43e4f..5f06a4cd 100644
--- a/djangoproject/templates/members/team_list.html
+++ b/djangoproject/templates/members/team_list.html
@@ -15,6 +15,7 @@
<h2>{% translate "Teams" %}</h2>
<p>
+ {% url 'document-detail' lang='en' version='dev' url='internals/organization' host 'docs' as organization_url %}
{% blocktranslate trimmed %}
The following teams are groups of people who support the Django project
and the Django Software Foundation. Apart from the Django Fellows, who
@@ -24,7 +25,7 @@
individuals with elevated permissions rather than formal teams. For an
overview of how the Django Project is organized and the principles that
guide it, see the
- <a href="https://docs.djangoproject.com/en/dev/internals/organization/#organization-of-the-django-project">
+ <a href="{{ organization_url }}#organization-of-the-django-project">
organization and principles
</a> page.
{% endblocktranslate %}
diff --git a/djangoproject/templates/releases/download.html b/djangoproject/templates/releases/download.html
index cf7f8a07..0e0f4a85 100644
--- a/djangoproject/templates/releases/download.html
+++ b/djangoproject/templates/releases/download.html
@@ -71,7 +71,7 @@
<p>Certain feature releases will be designated as <strong>long-term support
(LTS) releases</strong>. These releases will get security and data loss
fixes applied for a guaranteed period of time, typically three years.</p>
- <p>See the <a href="https://docs.djangoproject.com/en/dev/internals/release-process/#supported-versions">
+ <p>See the <a href="{% url 'document-detail' lang='en' version='dev' url='internals/release-process' host 'docs' %}#supported-versions">
supported versions policy</a> for detailed guidelines about what fixes will be backported.</p>
<img src="{% static "img/release-roadmap.svg" %}" class='img-release' style="max-width:100%;" alt="Django release roadmap">
diff --git a/djangoproject/templates/releases/roadmap.html b/djangoproject/templates/releases/roadmap.html
index 42095cbe..20214392 100644
--- a/djangoproject/templates/releases/roadmap.html
+++ b/djangoproject/templates/releases/roadmap.html
@@ -1,5 +1,5 @@
{% extends "base.html" %}
-{% load date_format fundraising_extras %}
+{% load date_format fundraising_extras hosts %}
{% block sectionid %}roadmap{% endblock %}
{% block title %}Django {{ series }} Roadmap{% endblock %}
@@ -21,11 +21,11 @@
that miss the deadline won't.</p>
<p>If you have a major feature you'd like to contribute, please propose it on
<a href="https://github.com/orgs/django/projects/24/">new feature ideas GitHub project</a> and review the
- <a href="https://docs.djangoproject.com/en/dev/internals/contributing/bugs-and-features/#requesting-features">requesting features documentation</a>.</p>
+ <a href="{% url 'document-detail' lang='en' version='dev' url='internals/contributing/bugs-and-features' host 'docs' %}#requesting-features">requesting features documentation</a>.</p>
<p>Minor features and bug fixes will be merged as they are completed. If you
have submitted a patch, ensure the flags on the Trac ticket are correct so it
appears in the "Patches needing review" filter of the
- <a href="https://dashboard.djangoproject.com/">Django Development Dashboard</a>.
+ <a href="{% host_url 'dashboard-index' host 'dashboard' %}">Django Development Dashboard</a>.
Better yet, find someone to review your patch and mark the ticket as
"Ready for checkin". Tickets marked "Ready for checkin" are regularly reviewed
by mergers.</p>
@@ -35,9 +35,9 @@
<h2>How you can help</h2>
<p>Community effort is key. You can help by:</p>
<ul>
- <li>Reading the <a href="http://docs.djangoproject.com/en/dev/internals/contributing/">guide to contributing</a>
- and <a href="http://docs.djangoproject.com/en/dev/internals/release-process/">Django's release process</a>.</li>
- <li>Working on patches and <a href="https://docs.djangoproject.com/en/dev/internals/contributing/triaging-tickets/">triaging tickets</a>.</li>
+ <li>Reading the <a href="{% url 'document-detail' lang='en' version='dev' url='internals/contributing' host 'docs' %}">guide to contributing</a>
+ and <a href="{% url 'document-detail' lang='en' version='dev' url='internals/release-process' host 'docs' %}">Django's release process</a>.</li>
+ <li>Working on patches and <a href="{% url 'document-detail' lang='en' version='dev' url='internals/contributing/triaging-tickets' host 'docs' %}">triaging tickets</a>.</li>
<li>Attending sprints.</li>
<li>Testing release snapshots (alphas, betas) against your code and reporting bugs.</li>
<li>Providing as many testers as possible to ensure a bug-free release.</li>
diff --git a/docs/templates/docs/doc.html b/docs/templates/docs/doc.html
index 114165ba..5c960f4a 100644
--- a/docs/templates/docs/doc.html
+++ b/docs/templates/docs/doc.html
@@ -183,7 +183,7 @@
<dt><a href="{% url 'document-detail' lang=lang version=version url="faq" host 'docs' %}">{% trans "FAQ" %}</a></dt>
<dd>{% blocktrans %}Try the FAQ — it's got answers to many common questions.{% endblocktrans %}</dd>
- <dt><a href="/en/stable/genindex/">{% trans "Index" %}</a>, <a href="/en/stable/py-modindex/">{% trans "Module Index" %}</a>, or <a href="/en/stable/contents/">{% trans "Table of Contents" %}</a></dt>
+ <dt><a href="{% url 'document-detail' lang='en' version='stable' url='genindex' host 'docs' %}">{% trans "Index" %}</a>, <a href="{% url 'document-detail' lang='en' version='stable' url='py-modindex' host 'docs' %}">{% trans "Module Index" %}</a>, or <a href="{% url 'document-detail' lang='en' version='stable' url='contents' host 'docs' %}">{% trans "Table of Contents" %}</a></dt>
<dd>{% blocktrans %}Handy when looking for specific information.{% endblocktrans %}</dd>
<dt><a href="https://chat.djangoproject.com">{% trans "Django Discord Server" %}</a></dt>
diff --git a/members/forms.py b/members/forms.py
index 095edcb6..3124ae7b 100644
--- a/members/forms.py
+++ b/members/forms.py
@@ -53,7 +53,7 @@ class CorporateMemberSignUpForm(forms.ModelForm):
)
self.fields["description"].help_text = _(
"""We'll use this text on the
- <a href="/foundation/corporate-members/">
+ <a href="https://www.djangoproject.com/foundation/corporate-members/">
corporate membership page</a>; you can use the existing descriptions
as a guide for flavor we're looking for."""
)
@@ -67,9 +67,9 @@ class CorporateMemberSignUpForm(forms.ModelForm):
self.fields["amount"].help_text = _(
"""Enter an amount above and the appropriate membership level will
be automatically selected. Or select a membership level below and
- the minimum donation will be entered for you. See
- <a href="/foundation/corporate-membership/#dues">dues</a> for
- details on the levels."""
+ the minimum donation will be entered for you. See <a
+ href="https://www.djangoproject.com/foundation/corporate-membership/#dues"
+ >dues</a> for details on the levels."""
)
class Meta:
diff --git a/releases/tests.py b/releases/tests.py
index da7d893f..a3553d1f 100644
--- a/releases/tests.py
+++ b/releases/tests.py
@@ -688,11 +688,5 @@ class RoadmapViewTestCase(ReleaseMixin, TestCase):
def test_links_to_contributing_and_release_process_present(self):
url = reverse("roadmap", kwargs={"series": "20.0"})
response = self.client.get(url)
- self.assertContains(
- response,
- 'href="http://docs.djangoproject.com/en/dev/internals/contributing/"',
- )
- self.assertContains(
- response,
- 'href="http://docs.djangoproject.com/en/dev/internals/release-process/"',
- )
+ self.assertContains(response, 'en/dev/internals/contributing/"')
+ self.assertContains(response, 'en/dev/internals/release-process/"')