summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2017-05-20 17:51:21 +0200
committerClaude Paroz <claude@2xlibre.net>2017-05-22 19:32:02 +0200
commit65dfe579d08361e04b7b3c1895b10f84b69d5c59 (patch)
tree960e2ea3ad9e1a15aec175cd031fe707d663bc66 /docs/ref
parenta810f4aa04d205afba39903a141422cdbc945667 (diff)
[1.11.x] Updated various links in docs to avoid redirects
Thanks Tim Graham and Mariusz Felisiak for review and completion.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/clickjacking.txt4
-rw-r--r--docs/ref/contrib/gis/forms-api.txt4
-rw-r--r--docs/ref/contrib/gis/geos.txt2
-rw-r--r--docs/ref/contrib/gis/install/index.txt6
-rw-r--r--docs/ref/contrib/gis/install/spatialite.txt2
-rw-r--r--docs/ref/contrib/postgres/fields.txt2
-rw-r--r--docs/ref/contrib/sitemaps.txt8
-rw-r--r--docs/ref/csrf.txt4
-rw-r--r--docs/ref/databases.txt4
-rw-r--r--docs/ref/django-admin.txt2
-rw-r--r--docs/ref/middleware.txt11
-rw-r--r--docs/ref/utils.txt2
-rw-r--r--docs/ref/validators.txt2
13 files changed, 25 insertions, 28 deletions
diff --git a/docs/ref/clickjacking.txt b/docs/ref/clickjacking.txt
index 2f72e18d2f..ade7069db5 100644
--- a/docs/ref/clickjacking.txt
+++ b/docs/ref/clickjacking.txt
@@ -35,7 +35,7 @@ load the resource in a frame if the request originated from the same site. If
the header is set to ``DENY`` then the browser will block the resource from
loading in a frame no matter which site made the request.
-.. _X-Frame-Options: https://developer.mozilla.org/en-US/docs/Web/HTTP/X-Frame-Options
+.. _X-Frame-Options: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options
Django provides a few simple ways to include this header in responses from your
site:
@@ -127,5 +127,5 @@ See also
A `complete list`_ of browsers supporting ``X-Frame-Options``.
-.. _complete list: https://developer.mozilla.org/en-US/docs/Web/HTTP/X-Frame-Options#Browser_compatibility
+.. _complete list: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options#Browser_compatibility
.. _other clickjacking prevention techniques: https://en.wikipedia.org/wiki/Clickjacking#Prevention
diff --git a/docs/ref/contrib/gis/forms-api.txt b/docs/ref/contrib/gis/forms-api.txt
index 32cdd51dad..ccb4776f8c 100644
--- a/docs/ref/contrib/gis/forms-api.txt
+++ b/docs/ref/contrib/gis/forms-api.txt
@@ -7,10 +7,10 @@ GeoDjango Forms API
GeoDjango provides some specialized form fields and widgets in order to visually
display and edit geolocalized data on a map. By default, they use
-`OpenLayers`_-powered maps, with a base WMS layer provided by `Metacarta`_.
+`OpenLayers`_-powered maps, with a base WMS layer provided by `NASA`_.
.. _OpenLayers: http://openlayers.org/
-.. _Metacarta: http://www.metacarta.com/
+.. _NASA: https://earthdata.nasa.gov/
Field arguments
===============
diff --git a/docs/ref/contrib/gis/geos.txt b/docs/ref/contrib/gis/geos.txt
index 59a199492a..63aa69729c 100644
--- a/docs/ref/contrib/gis/geos.txt
+++ b/docs/ref/contrib/gis/geos.txt
@@ -18,7 +18,7 @@ and spatial operators. GEOS, now an OSGeo project, was initially developed and
maintained by `Refractions Research`__ of Victoria, Canada.
__ https://trac.osgeo.org/geos/
-__ http://sourceforge.net/projects/jts-topo-suite/
+__ https://sourceforge.net/projects/jts-topo-suite/
__ http://www.opengeospatial.org/standards/sfs
__ http://www.refractions.net/
diff --git a/docs/ref/contrib/gis/install/index.txt b/docs/ref/contrib/gis/install/index.txt
index e9f6662327..dda1b5bc34 100644
--- a/docs/ref/contrib/gis/install/index.txt
+++ b/docs/ref/contrib/gis/install/index.txt
@@ -257,7 +257,7 @@ Summary::
$ brew install gdal
$ brew install libgeoip
-__ http://brew.sh/
+__ https://brew.sh/
.. _Xcode: https://developer.apple.com/xcode/
.. _kyngchaos:
@@ -403,8 +403,8 @@ install :ref:`postgisasb`.
and contains shortcuts for the ASB as well as the 'SQL Shell',
which will launch a ``psql`` command window.
-__ http://www.enterprisedb.com/products-services-training/pgdownload
-__ http://www.enterprisedb.com
+__ https://www.enterprisedb.com/downloads/postgres-postgresql-downloads
+__ https://www.enterprisedb.com
.. _postgisasb:
diff --git a/docs/ref/contrib/gis/install/spatialite.txt b/docs/ref/contrib/gis/install/spatialite.txt
index 5871233ee1..21208ebfb4 100644
--- a/docs/ref/contrib/gis/install/spatialite.txt
+++ b/docs/ref/contrib/gis/install/spatialite.txt
@@ -133,4 +133,4 @@ following to your ``settings.py``::
SPATIALITE_LIBRARY_PATH='/usr/local/lib/mod_spatialite.dylib'
-.. _Homebrew: http://brew.sh/
+.. _Homebrew: https://brew.sh/
diff --git a/docs/ref/contrib/postgres/fields.txt b/docs/ref/contrib/postgres/fields.txt
index f384f5829c..33e48e2910 100644
--- a/docs/ref/contrib/postgres/fields.txt
+++ b/docs/ref/contrib/postgres/fields.txt
@@ -278,7 +278,7 @@ A more useful index is a ``GIN`` index, which you should create using a
similar to PostgreSQL's ``text`` type.
.. _citext: https://www.postgresql.org/docs/current/static/citext.html
- .. _the performance considerations: https://www.postgresql.org/docs/current/static/citext.html#AEN169274
+ .. _the performance considerations: https://www.postgresql.org/docs/current/static/citext.html#AEN178177
``HStoreField``
===============
diff --git a/docs/ref/contrib/sitemaps.txt b/docs/ref/contrib/sitemaps.txt
index cbebfb7fbf..1b9c62e5d5 100644
--- a/docs/ref/contrib/sitemaps.txt
+++ b/docs/ref/contrib/sitemaps.txt
@@ -8,7 +8,7 @@ The sitemap framework
Django comes with a high-level sitemap-generating framework that makes
creating sitemap_ XML files easy.
-.. _sitemap: http://www.sitemaps.org/
+.. _sitemap: https://www.sitemaps.org/
Overview
========
@@ -226,7 +226,7 @@ Note:
default priority of a page is ``0.5``. See the `sitemaps.org
documentation`_ for more.
- .. _sitemaps.org documentation: http://www.sitemaps.org/protocol.html#prioritydef
+ .. _sitemaps.org documentation: https://www.sitemaps.org/protocol.html#prioritydef
.. attribute:: Sitemap.protocol
@@ -244,7 +244,7 @@ Note:
This attribute defines the maximum number of URLs included on each page
of the sitemap. Its value should not exceed the default value of
``50000``, which is the upper limit allowed in the `Sitemaps protocol
- <http://www.sitemaps.org/protocol.html#index>`_.
+ <https://www.sitemaps.org/protocol.html#index>`_.
.. attribute:: Sitemap.i18n
@@ -455,7 +455,7 @@ generate a Google News compatible sitemap:
<?xml version="1.0" encoding="UTF-8"?>
<urlset
- xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
+ xmlns="https://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:news="http://www.google.com/schemas/sitemap-news/0.9">
{% spaceless %}
{% for url in urlset %}
diff --git a/docs/ref/csrf.txt b/docs/ref/csrf.txt
index a95bc2af60..ba91850d85 100644
--- a/docs/ref/csrf.txt
+++ b/docs/ref/csrf.txt
@@ -145,8 +145,8 @@ Setting the token on the AJAX request
Finally, you'll have to actually set the header on your AJAX request, while
protecting the CSRF token from being sent to other domains using
-`settings.crossDomain <https://api.jquery.com/jQuery.ajax>`_ in jQuery 1.5.1 and
-newer:
+`settings.crossDomain <https://api.jquery.com/jQuery.ajax/>`_ in jQuery 1.5.1
+and newer:
.. code-block:: javascript
diff --git a/docs/ref/databases.txt b/docs/ref/databases.txt
index 1a9f37afed..add34acb6c 100644
--- a/docs/ref/databases.txt
+++ b/docs/ref/databases.txt
@@ -773,8 +773,8 @@ Oracle notes
Django supports `Oracle Database Server`_ versions 11.2 and higher. Version
5.2 or higher of the `cx_Oracle`_ Python driver is required.
-.. _`Oracle Database Server`: http://www.oracle.com/
-.. _`cx_Oracle`: http://cx-oracle.sourceforge.net/
+.. _`Oracle Database Server`: https://www.oracle.com/
+.. _`cx_Oracle`: https://oracle.github.io/python-cx_Oracle/
In order for the ``python manage.py migrate`` command to work, your Oracle
database user must have privileges to run the following commands:
diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt
index 800b80ee69..9e3f6177e4 100644
--- a/docs/ref/django-admin.txt
+++ b/docs/ref/django-admin.txt
@@ -966,7 +966,7 @@ Python interpreter, use ``python`` as the interface name, like so::
is deprecated and will be removed in Django 2.0.
.. _IPython: https://ipython.org/
-.. _bpython: http://bpython-interpreter.org/
+.. _bpython: https://bpython-interpreter.org/
.. django-admin-option:: --nostartup
diff --git a/docs/ref/middleware.txt b/docs/ref/middleware.txt
index dd0bae3bb3..f4ecc8a96e 100644
--- a/docs/ref/middleware.txt
+++ b/docs/ref/middleware.txt
@@ -295,7 +295,7 @@ If you wish to submit your site to the `browser preload list`_, set the
you may need to set the :setting:`SECURE_PROXY_SSL_HEADER` setting.
.. _"Strict-Transport-Security" header: https://en.wikipedia.org/wiki/Strict_Transport_Security
-.. _browser preload list: https://hstspreload.appspot.com/
+.. _browser preload list: https://hstspreload.org/
.. _x-content-type-options:
@@ -311,12 +311,9 @@ If your site serves user-uploaded files, a malicious user could upload a
specially-crafted file that would be interpreted as HTML or JavaScript by
the browser when you expected it to be something harmless.
-To learn more about this header and how the browser treats it, you can
-read about it on the `IE Security Blog`_.
-
To prevent the browser from guessing the content type and force it to
always use the type provided in the ``Content-Type`` header, you can pass
-the ``X-Content-Type-Options: nosniff`` header. ``SecurityMiddleware`` will
+the `X-Content-Type-Options: nosniff`__ header. ``SecurityMiddleware`` will
do this for all responses if the :setting:`SECURE_CONTENT_TYPE_NOSNIFF` setting
is ``True``.
@@ -328,7 +325,7 @@ you are using Django to do something like require authorization in order to
download files and you cannot set the header using your Web server, this
setting will be useful.
-.. _IE Security Blog: http://blogs.msdn.com/b/ie/archive/2008/09/02/ie8-security-part-vi-beta-2-update.aspx
+__ https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options
.. _x-xss-protection:
@@ -355,7 +352,7 @@ header. ``SecurityMiddleware`` will do this for all responses if the
sanitizing <cross-site-scripting>` all input to prevent XSS attacks.
.. _XSS attack: https://en.wikipedia.org/wiki/Cross-site_scripting
-.. _X-XSS-Protection header: http://blogs.msdn.com/b/ie/archive/2008/07/02/ie8-security-part-iv-the-xss-filter.aspx
+.. _X-XSS-Protection header: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection
.. _ssl-redirect:
diff --git a/docs/ref/utils.txt b/docs/ref/utils.txt
index 6ab00cc9c7..4ad645f958 100644
--- a/docs/ref/utils.txt
+++ b/docs/ref/utils.txt
@@ -425,7 +425,7 @@ https://web.archive.org/web/20110718035220/http://diveintomark.org/archives/2004
.. class:: Rss201rev2Feed(RssFeed)
- Spec: https://cyber.law.harvard.edu/rss/rss.html
+ Spec: https://cyber.harvard.edu/rss/rss.html
``RssUserland091Feed``
----------------------
diff --git a/docs/ref/validators.txt b/docs/ref/validators.txt
index eeac982bdc..66803ee534 100644
--- a/docs/ref/validators.txt
+++ b/docs/ref/validators.txt
@@ -305,4 +305,4 @@ to, or in lieu of custom ``field.clean()`` methods.
.. versionadded:: 1.11
Uses Pillow to ensure that the ``value`` is `a valid image extension
- <https://pillow.readthedocs.org/en/latest/handbook/image-file-formats.html>`_.
+ <https://pillow.readthedocs.io/en/latest/handbook/image-file-formats.html>`_.