Skip to content

Commit 5010aeb

Browse files
committed
Update templates to be unchanged when no PyManager is available
1 parent 8f7b220 commit 5010aeb

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

templates/downloads/os_list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ <h2>Stable Releases</h2>
4343
<li>
4444
<a href="{{ r.get_absolute_url }}">{{ r.name }} - {{ r.release_date|date }}</a>
4545
{% if os.slug == 'windows' %}
46-
{% if r.is_version_at_least_3_14 %}
46+
{% if latest_pymanager and r.is_version_at_least_3_14 %}
4747
{% if latest_pymanager %}
4848
<p>Download using the <a href="{{ latest_pymanager.get_absolute_url }}">Python install manager</a>.</p>
4949
{% else %}

templates/downloads/supernav.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ <h4>Download for {{ data.os.name }}</h4>
1515
<p>
1616
<a class="button" href="{{ data.python3.url }}">{{ data.python3.release.name }}</a>
1717
</p>
18+
{% if data.os.slug == 'windows' %}<p><strong>Note that Python 3.9+ <em>cannot</em> be used on Windows 7 or earlier.</strong></p>{% endif %}
1819
{% endif %}
1920
<p>Not the OS you are looking for? Python can be used on many operating systems and environments. <a href="{% url 'download:download' %}">View the full list of downloads</a>.</p>
2021
</div>

0 commit comments

Comments
 (0)