summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorAdam Johnson <me@adamj.eu>2023-11-28 16:57:48 +0000
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-11-29 11:21:22 +0100
commit272ceb9584a68c7df464e8633c02eb4f997da092 (patch)
tree1435754076ee8c52358e0dc702cf18d63b3dd04d /docs/ref
parent134cde8415b3a9118262ef4ea34cf798c258be03 (diff)
Refs #25778 -- Updated some links and references to HTTPS.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/contrib/gis/gdal.txt2
-rw-r--r--docs/ref/contrib/sitemaps.txt2
-rw-r--r--docs/ref/contrib/sites.txt2
-rw-r--r--docs/ref/contrib/syndication.txt4
-rw-r--r--docs/ref/forms/fields.txt10
-rw-r--r--docs/ref/settings.txt4
-rw-r--r--docs/ref/utils.txt4
7 files changed, 14 insertions, 14 deletions
diff --git a/docs/ref/contrib/gis/gdal.txt b/docs/ref/contrib/gis/gdal.txt
index 2b8f6d29da..c0221a17a9 100644
--- a/docs/ref/contrib/gis/gdal.txt
+++ b/docs/ref/contrib/gis/gdal.txt
@@ -1980,7 +1980,7 @@ For instance:
# Read a raster as a file object from a remote source.
>>> from urllib.request import urlopen
- >>> dat = urlopen("http://example.com/raster.tif").read()
+ >>> dat = urlopen("https://example.com/raster.tif").read()
# Instantiate a raster from the bytes object.
>>> rst = GDALRaster(dat)
# The name starts with /vsimem/, indicating that the raster lives in the
diff --git a/docs/ref/contrib/sitemaps.txt b/docs/ref/contrib/sitemaps.txt
index de8d532180..4f32c06bd9 100644
--- a/docs/ref/contrib/sitemaps.txt
+++ b/docs/ref/contrib/sitemaps.txt
@@ -568,7 +568,7 @@ generate a Google News compatible sitemap:
<?xml version="1.0" encoding="UTF-8"?>
<urlset
xmlns="https://www.sitemaps.org/schemas/sitemap/0.9"
- xmlns:news="http://www.google.com/schemas/sitemap-news/0.9">
+ xmlns:news="https://www.google.com/schemas/sitemap-news/0.9">
{% spaceless %}
{% for url in urlset %}
<url>
diff --git a/docs/ref/contrib/sites.txt b/docs/ref/contrib/sites.txt
index 17f8194814..d69e4c8e81 100644
--- a/docs/ref/contrib/sites.txt
+++ b/docs/ref/contrib/sites.txt
@@ -246,7 +246,7 @@ Getting the current domain for full URLs
Django's ``get_absolute_url()`` convention is nice for getting your objects'
URL without the domain name, but in some cases you might want to display the
-full URL -- with ``http://`` and the domain and everything -- for an object.
+full URL -- with ``https://`` and the domain and everything -- for an object.
To do this, you can use the sites framework. An example:
.. code-block:: pycon
diff --git a/docs/ref/contrib/syndication.txt b/docs/ref/contrib/syndication.txt
index a3f678b1f0..d9672c5b00 100644
--- a/docs/ref/contrib/syndication.txt
+++ b/docs/ref/contrib/syndication.txt
@@ -532,7 +532,7 @@ This example illustrates all possible attributes and methods for a
# AUTHOR LINK --One of the following three is optional. The framework
# looks for them in this order. In each case, the URL should include
- # the "http://" and domain name.
+ # the scheme (such as "https://") and domain name.
def author_link(self, obj):
"""
@@ -735,7 +735,7 @@ This example illustrates all possible attributes and methods for a
# ITEM AUTHOR LINK -- One of the following three is optional. The
# framework looks for them in this order. In each case, the URL should
- # include the "http://" and domain name.
+ # include the scheme (such as "https://") and domain name.
#
# If you specify this, you must specify item_author_name.
diff --git a/docs/ref/forms/fields.txt b/docs/ref/forms/fields.txt
index a3e0bf1aba..8b07c6e2b2 100644
--- a/docs/ref/forms/fields.txt
+++ b/docs/ref/forms/fields.txt
@@ -173,13 +173,13 @@ field is initialized to a particular value. For example:
>>> from django import forms
>>> class CommentForm(forms.Form):
... name = forms.CharField(initial="Your name")
- ... url = forms.URLField(initial="http://")
+ ... url = forms.URLField(initial="https://")
... comment = forms.CharField()
...
>>> f = CommentForm(auto_id=False)
>>> print(f)
<div>Name:<input type="text" name="name" value="Your name" required></div>
- <div>Url:<input type="url" name="url" value="http://" required></div>
+ <div>Url:<input type="url" name="url" value="https://" required></div>
<div>Comment:<input type="text" name="comment" required></div>
You may be thinking, why not just pass a dictionary of the initial values as
@@ -193,7 +193,7 @@ and the HTML output will include any validation errors:
... url = forms.URLField()
... comment = forms.CharField()
...
- >>> default_data = {"name": "Your name", "url": "http://"}
+ >>> default_data = {"name": "Your name", "url": "https://"}
>>> f = CommentForm(default_data, auto_id=False)
>>> print(f)
<div>Name:
@@ -201,7 +201,7 @@ and the HTML output will include any validation errors:
</div>
<div>Url:
<ul class="errorlist"><li>Enter a valid URL.</li></ul>
- <input type="url" name="url" value="http://" required aria-invalid="true">
+ <input type="url" name="url" value="https://" required aria-invalid="true">
</div>
<div>Comment:
<ul class="errorlist"><li>This field is required.</li></ul>
@@ -219,7 +219,7 @@ validation if a particular field's value is not given. ``initial`` values are
>>> class CommentForm(forms.Form):
... name = forms.CharField(initial="Your name")
- ... url = forms.URLField(initial="http://")
+ ... url = forms.URLField(initial="https://")
... comment = forms.CharField()
...
>>> data = {"name": "", "url": "", "comment": "Foo"}
diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt
index 5d3e893cc7..2aa2beb1be 100644
--- a/docs/ref/settings.txt
+++ b/docs/ref/settings.txt
@@ -2096,7 +2096,7 @@ If you want to use ``{{ MEDIA_URL }}`` in your templates, add
``'django.template.context_processors.media'`` in the ``'context_processors'``
option of :setting:`TEMPLATES`.
-Example: ``"http://media.example.com/"``
+Example: ``"https://media.example.com/"``
.. warning::
@@ -3478,7 +3478,7 @@ Default: ``None``
URL to use when referring to static files located in :setting:`STATIC_ROOT`.
-Example: ``"static/"`` or ``"http://static.example.com/"``
+Example: ``"static/"`` or ``"https://static.example.com/"``
If not ``None``, this will be used as the base path for
:ref:`asset definitions<form-asset-paths>` (the ``Media`` class) and the
diff --git a/docs/ref/utils.txt b/docs/ref/utils.txt
index 4e28690f44..8ebb4f5116 100644
--- a/docs/ref/utils.txt
+++ b/docs/ref/utils.txt
@@ -306,13 +306,13 @@ Sample usage:
>>> from django.utils import feedgenerator
>>> feed = feedgenerator.Rss201rev2Feed(
... title="Poynter E-Media Tidbits",
- ... link="http://www.poynter.org/column.asp?id=31",
+ ... link="https://www.poynter.org/tag/e-media-tidbits/",
... description="A group blog by the sharpest minds in online media/journalism/publishing.",
... language="en",
... )
>>> feed.add_item(
... title="Hello",
- ... link="http://www.holovaty.com/test/",
+ ... link="https://www.holovaty.com/test/",
... description="Testing.",
... )
>>> with open("test.rss", "w") as fp: