Skip to content

Commit 75e72fc

Browse files
committed
Removed relative urls.
1 parent f1b699a commit 75e72fc

File tree

15 files changed

+59
-53
lines changed

15 files changed

+59
-53
lines changed

djangoproject/templates/aggregator/ecosystem.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% extends "base_community.html" %}
2-
{% load i18n %}
2+
{% load i18n hosts %}
33

44
{% block content %}
55

@@ -139,7 +139,7 @@ <h3 id="tutorials">
139139
<ul>
140140
<li>
141141
<a href="https://tutorial.djangogirls.org/">DjangoGirls Tutorial</a>
142-
&mdash; A great tutorial you can do in addition to the <a href="/en/dev/intro/tutorial/01/">official tutorial</a>.
142+
&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>.
143143
</li>
144144
</ul>
145145

@@ -152,10 +152,10 @@ <h3 id="miscellaneous">
152152
<a href="https://builtwithdjango.com/projects/" rel="nofollow">Django-powered sites</a>
153153
</li>
154154
<li>
155-
<a href="/community/badges/">Show your support with badges</a>
155+
<a href="{% host_url "homepage" host "www" %}community/badges/">Show your support with badges</a>
156156
</li>
157157
<li>
158-
<a href="/community/logos/">Download official logos</a>
158+
<a href="{% host_url "homepage" host "www" %}community/logos/">Download official logos</a>
159159
</li>
160160
</ul>
161161

djangoproject/templates/aggregator/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ <h3>{% translate "Package Ecosystem" %}</h3>
3939

4040
<h2 class="community-title">{% translate "Get Involved" %}</h2>
4141
<div class="community-cta-wrapper">
42-
<a href="https://docs.djangoproject.com/en/dev/internals/contributing/bugs-and-features/#reporting-bugs" class="community-cta-a">
42+
<a href="{% url 'document-detail' lang='en' version='dev' url='internals/contributing/bugs-and-features' host 'docs' %}#reporting-bugs" class="community-cta-a">
4343
<div class="community-cta">
4444
<div>
4545
{% include "svg_logos/bug.html" %}
4646
</div>
4747
<h3>{% translate "Report an issue" %}</h3>
4848
</div>
4949
</a>
50-
<a href="https://docs.djangoproject.com/en/dev/internals/contributing/" class="community-cta-a">
50+
<a href="{% url 'document-detail' lang='en' version='dev' url='internals/contributing' host 'docs' %}" class="community-cta-a">
5151
<div class="community-cta">
5252
<div>
5353
{% include "svg_logos/notepad.html" %}

djangoproject/templates/base_community.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% extends "base.html" %}
2-
{% load fundraising_extras i18n %}
2+
{% load fundraising_extras i18n hosts %}
33

44
{% block og_title %}{% translate "Django Community" %}{% endblock %}
55
{% block og_description %}{% translate "Building the Django Community. Come join us!" %}{% endblock %}
@@ -45,7 +45,7 @@ <h3>{% translate "Dive In" %}</h3>
4545
<dl class="list-links">
4646
<dt><a href="https://code.djangoproject.com/">{% translate "Ticket System" %}</a></dt>
4747
<dd>{% translate "View and update bug reports" %}</dd>
48-
<dt><a href="https://dashboard.djangoproject.com/">{% translate "Development Dashboard" %}</a></dt>
48+
<dt><a href="{% host_url 'dashboard-index' host 'dashboard' %}">{% translate "Development Dashboard" %}</a></dt>
4949
<dd>{% translate "Statistics about Django development" %}</dd>
5050
<dt><a href="https://groups.google.com/group/django-updates">{% translate "django-updates Mailing List" %}</a></dt>
5151
<dd>{% translate "Get updated for each code and ticket change" %}</dd>
@@ -57,9 +57,9 @@ <h3>{% translate "More Links" %}</h3>
5757
<dd>{% translate "Find third-party packages to supercharge your project" %}</dd>
5858
<dt><a href="https://builtwithdjango.com/projects/" rel="nofollow">{% translate "Django-powered Sites" %}</a></dt>
5959
<dd>{% translate "Add your site to the list" %}</dd>
60-
<dt><a href="/community/badges/">{% translate "Django Badges" %}</a></dt>
60+
<dt><a href="{% host_url "homepage" host "www" %}community/badges/">{% translate "Django Badges" %}</a></dt>
6161
<dd>{% translate "Show your support (or wish longingly)" %}</dd>
62-
<dt><a href="/community/logos/">{% translate "Django Logos" %}</a></dt>
62+
<dt><a href="{% host_url "homepage" host "www" %}community/logos/">{% translate "Django Logos" %}</a></dt>
6363
<dd>{% translate "Download official logos" %}</dd>
6464
</dl>
6565
</div>

djangoproject/templates/base_foundation.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% extends "base.html" %}
2-
{% load fundraising_extras meetings i18n %}
2+
{% load fundraising_extras meetings i18n hosts %}
33

44
{% block og_title %}Django Software Foundation{% endblock %}
55

@@ -19,11 +19,11 @@ <h2 class="visuallyhidden" id="aside-header">{% translate "Additional Informatio
1919

2020
<h3>About the foundation</h3>
2121
<ul class="list-links">
22-
<li><a href="/foundation/faq/">FAQ</a></li>
23-
<li><a href="/foundation/records/">Records</a></li>
22+
<li><a href="{% host_url 'homepage' host 'www' %}foundation/faq/">FAQ</a></li>
23+
<li><a href="{% host_url 'homepage' host 'www' %}foundation/records/">Records</a></li>
2424
<li><a href="{% url 'contact_foundation' %}">Contact us</a></li>
25-
<li><a href="/foundation/cla/">Contributor license agreements</a></li>
26-
<li><a href="/foundation/conferences/">Organizing a Django conference</a></li>
25+
<li><a href="{% host_url 'homepage' host 'www' %}foundation/cla/">Contributor license agreements</a></li>
26+
<li><a href="{% host_url 'homepage' host 'www' %}foundation/conferences/">Organizing a Django conference</a></li>
2727
</ul>
2828
<h3>{% translate "Latest DSF meeting minutes" %}</h3>
2929
<p> {% translate "The minutes from May 2025 onwards are stored in the repo" %}

djangoproject/templates/base_weblog.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% extends "base.html" %}
2-
{% load fundraising_extras i18n weblog %}
2+
{% load fundraising_extras i18n weblog hosts %}
33
{% block layout_class %}sidebar-right{% endblock %}
44
{% block title %}{% translate "News &amp; Events" %}{% endblock %}
55

@@ -34,7 +34,7 @@ <h3>{% translate "Upcoming Events" %}</h3>
3434
{% endfor %}
3535
</ul>
3636
{% endif %}
37-
<p><a href="/foundation/conferences/">{% translate "Want your event listed here?" %}</a></p>
37+
<p><a href="{% host_url 'homepage' host 'www' %}foundation/conferences/">{% translate "Want your event listed here?" %}</a></p>
3838

3939
{% comment %}
4040
{# tags not implemented in backend yet #}

djangoproject/templates/fundraising/index.html

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% extends 'base.html' %}
2-
{% load fundraising_extras humanize i18n static %}
2+
{% load fundraising_extras humanize i18n static hosts %}
33

44
{% block title %}{% translate "Support Django" %}{% endblock %}
55
{% block layout_class %}full-width{% endblock %}
@@ -42,8 +42,9 @@ <h2>{% translate "Other ways to give" %}</h2>
4242
</li>
4343
<li><a href="https://github.com/sponsors/django" target="_blank">{% translate "Sponsor Django via GitHub Sponsors" %}</a>.</li>
4444
<li>
45+
{% url 'fundraising:index' as fundraising_url %}
4546
{% blocktranslate trimmed %}
46-
<a href="/foundation/donate/#benevity-giving">Benevity Workplace Giving
47+
<a href="{{ fundraising_url }}#benevity-giving">Benevity Workplace Giving
4748
Program</a> - If your employer participates, you can make donations to the
4849
DSF via payroll deduction.
4950
{% endblocktranslate %}
@@ -89,7 +90,7 @@ <h2 id="why-give">{% translate "Why give to the Django Software Foundation?" %}<
8990

9091
<p>
9192
{% blocktranslate trimmed %}
92-
Still curious? See our <a href="/foundation/donate/">Frequently Asked Questions</a>
93+
Still curious? See our <a href="{{ fundraising_url }}">Frequently Asked Questions</a>
9394
about donations.
9495
{% endblocktranslate %}
9596
</p>
@@ -118,12 +119,13 @@ <h2 id="fellowship-program">{% translate "Django Fellowship Program" %}</h2>
118119
</p>
119120

120121
<p>
122+
{% host_url 'homepage' host 'www' as base_url %}
121123
{% blocktranslate trimmed %}
122124
For more details, you can read retrospectives for the
123-
<a href="/weblog/2015/jan/21/django-fellowship-retrospective/"> first three
125+
<a href="{{ base_url }}weblog/2015/jan/21/django-fellowship-retrospective/"> first three
124126
months of the program</a>,
125-
<a href="/weblog/2015/dec/17/fellowship-2015-retrospective/">2015</a>, and
126-
<a href="/weblog/2016/dec/28/fellowship-2016-retrospective/">2016</a>.
127+
<a href="{{ base_url }}weblog/2015/dec/17/fellowship-2015-retrospective/">2015</a>, and
128+
<a href="{{ base_url }}weblog/2016/dec/28/fellowship-2016-retrospective/">2016</a>.
127129
{% endblocktranslate %}
128130
</p>
129131

@@ -144,7 +146,7 @@ <h2 id="fellowship-program">{% translate "Django Fellowship Program" %}</h2>
144146
<p>
145147
{% blocktranslate trimmed %}
146148
<strong>If you use Django on a daily basis and care about the development of Django
147-
itself, you should donate today</strong> (may be <a href="/foundation/donate/#tax-deductible">tax deductible</a>).
149+
itself, you should donate today</strong> (may be <a href="{{ fundraising_url }}#tax-deductible">tax deductible</a>).
148150
Only with your support can we make sure that the web framework you base your work on
149151
can grow to be even better in the coming years.
150152
{% endblocktranslate %}
@@ -249,15 +251,16 @@ <h2 id="dsf-supporters">{% translate "DSF Supporters" %}</h2>
249251
<div class="layout-tertiary" id="about">
250252
<div class="container">
251253
<h2>{% translate "What is the Django Software Foundation?" %}</h2>
254+
{% host_url 'homepage' host 'www' as base_url %}
252255
<p>
253256
{% blocktranslate trimmed %}
254257
Development of Django is supported by an independent foundation
255258
established as a 501(c)(3) non-profit. Like most open-source foundations,
256-
the goal of the <a href="/foundation/">Django Software Foundation</a>
259+
the goal of the <a href="{{ base_url }}foundation/">Django Software Foundation</a>
257260
is to promote, support, and advance the Django web framework. If you're
258261
interested in how the Django Software Foundation supports the Django
259262
web framework, we published a
260-
<a href="/weblog/2015/jan/08/django-software-foundation-2014/">
263+
<a href="{{ base_url }}weblog/2015/jan/08/django-software-foundation-2014/">
261264
Summary of 2014.
262265
</a>
263266
{% endblocktranslate %}
@@ -274,7 +277,7 @@ <h2 id="who-are-the-django-fellows">{% translate "Who are the Django Fellows?" %
274277
team since 2021 and a core committer to Python projects such as
275278
music21, pylint, and <a href="https://archesproject.org/">Arches</a>.
276279
Jacob
277-
<a href="https://www.djangoproject.com/weblog/2025/aug/11/welcome-our-new-fellow-jacob-tyler-walls/">
280+
<a href="{{ base_url }}weblog/2025/aug/11/welcome-our-new-fellow-jacob-tyler-walls/">
278281
began as a full-time Fellow in August 2025</a>.
279282
{% endblocktranslate %}
280283
</p>
@@ -285,7 +288,7 @@ <h2 id="who-are-the-django-fellows">{% translate "Who are the Django Fellows?" %
285288
(2024-present)</strong> - an active community member, co-creator of
286289
<a href="https://djangonaut.space">Djangonaut Space</a> and a member of
287290
Django's review and triage team since 2023. Sarah
288-
<a href="https://www.djangoproject.com/weblog/2024/mar/22/welcome-our-new-fellow-sarah-boyce/">
291+
<a href="{{ base_url }}weblog/2024/mar/22/welcome-our-new-fellow-sarah-boyce/">
289292
began as a full-time Fellow in April 2024</a>.
290293
{% endblocktranslate %}
291294
</p>
@@ -297,7 +300,7 @@ <h2 id="who-are-the-django-fellows">{% translate "Who are the Django Fellows?" %
297300
experience in architecting, building, and maintaining scalable web
298301
services, as well as leading new feature design and development.
299302
Natalia
300-
<a href="https://www.djangoproject.com/weblog/2023/mar/31/welcome-our-new-fellow-natalia-bidart/">
303+
<a href="{{ base_url }}weblog/2023/mar/31/welcome-our-new-fellow-natalia-bidart/">
301304
began as a part-time Fellow in April 2023</a>.
302305
{% endblocktranslate %}
303306
</p>

djangoproject/templates/homepage.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% extends "base_3col.html" %}
2-
{% load fundraising_extras i18n weblog %}
2+
{% load fundraising_extras i18n weblog hosts %}
33

44
{% block sectionid %}homepage{% endblock %}
55
{% block body_class %}homepage{% endblock %}
@@ -141,7 +141,7 @@ <h3>{% translate "Get involved" %}</h3>
141141
<dd>
142142
{% translate "Report bugs and make feature requests" %}
143143
</dd>
144-
<dt><a href="https://dashboard.djangoproject.com/">{% translate "Development dashboard" %}</a></dt>
144+
<dt><a href="{% host_url 'dashboard-index' host 'dashboard' %}">{% translate "Development dashboard" %}</a></dt>
145145
<dd>
146146
{% translate "see what's currently being worked on" %}
147147
</dd>
@@ -163,20 +163,20 @@ <h3>{% translate "Get Help" %}</h3>
163163

164164
<h3>{% translate "The Django Software Foundation" %}</h3>
165165
<dl class="list-links-small">
166-
<dt><a href="/foundation/">{% translate "About the Foundation" %}</a></dt>
166+
<dt><a href="{% host_url "homepage" host "www" %}foundation/">{% translate "About the Foundation" %}</a></dt>
167167
<dd>
168168
{% translate "Our non-profit supports the project" %}
169169
</dd>
170170

171-
<dt><a href="/foundation/donate/">{% translate "Support Django" %}</a></dt>
171+
<dt><a href="{% url 'fundraising:index' %}">{% translate "Support Django" %}</a></dt>
172172
<dd>
173173
{% translate "Your contribution makes Django stronger" %}
174174
</dd>
175175

176-
<dt><a href="/contact/foundation/">{% translate "Contact the Django Software Foundation" %}</a></dt>
176+
<dt><a href="{% host_url "homepage" host "www" %}contact/foundation/">{% translate "Contact the Django Software Foundation" %}</a></dt>
177177
<dd></dd>
178178
</dl>
179-
<a href="/foundation/" class="link-readmore">{% translate "More about the DSF" %}</a>
179+
<a href="{% host_url "homepage" host "www" %}/foundation/" class="link-readmore">{% translate "More about the DSF" %}</a>
180180
{% comment %}
181181
<h3>Upcoming Events</h3>
182182
<dl class="list-links-small news-list">

djangoproject/templates/includes/footer.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ <h3>Follow Us</h3>
6060
<h3>Support Us</h3>
6161
<ul>
6262
<li><a href="{% url "fundraising:index" %}">Sponsor Django</a></li>
63-
<li><a href="{% host_url "homepage" host "www" %}foundation/corporate-membership/">Corporate membership</a></li>
63+
<li><a href="{% url 'members:corporate-members' %}">Corporate membership</a></li>
6464
<li><a href="https://django.threadless.com/" target="_blank">Official merchandise store</a></li>
65-
<li><a href="{% host_url "homepage" host "www" %}foundation/donate/#benevity-giving">Benevity Workplace Giving Program</a></li>
65+
<li><a href="{% url 'fundraising:index' %}#benevity-giving">Benevity Workplace Giving Program</a></li>
6666
</ul>
6767
</div>
6868
</div>
@@ -82,9 +82,9 @@ <h3>Support Us</h3>
8282
<span class="ampersand">&amp;</span> <a class="andrevv" href="http://andrevv.com/">andrevv</a></li>
8383
</ul>
8484
<p class="copyright">&copy; 2005-{% now "Y" %}
85-
<a href="{% url 'homepage' %}foundation/"> Django Software
85+
<a href="{% host_url "homepage" host "www" %}foundation/"> Django Software
8686
Foundation</a> and individual contributors. Django is a
87-
<a href="{% url 'homepage' %}trademarks/">registered
87+
<a href="{% host_url "homepage" host "www" %}trademarks/">registered
8888
trademark</a> of the Django Software Foundation.
8989
</p>
9090
</div>

djangoproject/templates/members/corporate_member_badges.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@
3030
{% block content %}
3131
<h1>{% translate "Corporate member badges" %}</h1>
3232
<p>
33+
{% url 'members:corporate-members' as corporate_members_url %}
3334
{% blocktranslate trimmed %}
34-
<a href="/foundation/corporate-membership/">Corporate members</a> of the Django Software Foundation may display
35+
<a href="{{ corporate_members_url }}">Corporate members</a> of the Django Software Foundation may display
3536
these badges on their site to show their support.
3637
{% endblocktranslate %}
3738
</p>

djangoproject/templates/members/corporatemember_list.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@
77
{% block content %}
88
<h1>{% translate "Corporate members" %}</h1>
99
<p>
10+
{% url 'members:corporate-members' as corporate_members_url %}
1011
{% blocktranslate trimmed %}
1112
The following organizations are corporate members of the Django Software
1213
Foundation. If you are interested in becoming a corporate member of the
13-
DSF, you can find out more on our <a href="/foundation/corporate-membership/">
14+
DSF, you can find out more on our <a href="{{ corporate_members_url }}">
1415
corporate membership page</a>.
1516
{% endblocktranslate %}
1617
</p>

0 commit comments

Comments
 (0)