1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Refs #32720 -- Updated various links in docs to avoid redirects and use HTTPS.

This commit is contained in:
Nick Pope
2021-04-27 12:09:00 +01:00
committed by Mariusz Felisiak
parent 7c4ee487c7
commit c156e36955
55 changed files with 100 additions and 97 deletions

View File

@@ -225,7 +225,7 @@ MRO is an acronym for Method Resolution Order.
urlpatterns = [
path('counter/<int:pk>/', ArticleCounterRedirectView.as_view(), name='article-counter'),
path('details/<int:pk>/', ArticleDetailView.as_view(), name='article-detail'),
path('go-to-django/', RedirectView.as_view(url='https://djangoproject.com'), name='go-to-django'),
path('go-to-django/', RedirectView.as_view(url='https://www.djangoproject.com/'), name='go-to-django'),
]
**Attributes**

View File

@@ -132,5 +132,5 @@ See also
A `complete list`_ of browsers supporting ``X-Frame-Options``.
.. _complete list: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/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

View File

@@ -21,7 +21,7 @@ to raster (image) data.
Although the module is named ``gdal``, GeoDjango only supports some of the
capabilities of OGR and GDAL's raster features at this time.
__ https://www.gdal.org/
__ https://gdal.org/
__ https://gdal.org/user/vector_data_model.html
Overview
@@ -1644,7 +1644,7 @@ Examples of using the different keys when creating rasters can be found in the
documentation of the corresponding attributes and methods of the
:class:`GDALRaster` and :class:`GDALBand` classes.
__ https://geojson.org
__ https://geojson.org/
The ``ds_input`` dictionary
~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@@ -20,7 +20,7 @@ that ``geoip2`` can leverage the C library's faster speed.
__ https://geoip2.readthedocs.io/
__ https://pypi.org/project/geoip2/
__ https://dev.maxmind.com/geoip/geoip2/geolite2/
__ https://github.com/maxmind/libmaxminddb
__ https://github.com/maxmind/libmaxminddb/
Example
=======

View File

@@ -19,7 +19,7 @@ maintained by `Refractions Research`__ of Victoria, Canada.
__ https://trac.osgeo.org/geos/
__ https://sourceforge.net/projects/jts-topo-suite/
__ https://www.opengeospatial.org/standards/sfs
__ https://www.ogc.org/standards/sfs
__ http://www.refractions.net/
Features

View File

@@ -117,7 +117,7 @@ community! You can:
sure to provide a complete description of the problem, versions used,
and specify the component as "GIS".
__ https://groups.google.com/d/forum/geodjango
__ https://groups.google.com/g/geodjango
__ https://code.djangoproject.com/newticket
.. _libsettings:
@@ -333,8 +333,8 @@ of the `Fink`__ package system. `Different packages are available`__ (starting
with ``django-gis``), depending on which version of Python you want to use.
__ https://schwehr.blogspot.com/
__ http://www.finkproject.org/
__ http://pdb.finkproject.org/pdb/browse.php?summary=django-gis
__ https://www.finkproject.org/
__ https://pdb.finkproject.org/pdb/browse.php?summary=django-gis
.. _macports:

View File

@@ -18,7 +18,7 @@ For Windows, you may find binaries on the `Gaia-SINS`__ home page.
In any case, you should always be able to :ref:`install from source
<spatialite_source>`.
__ https://www.gaia-gis.it/fossil/libspatialite
__ https://www.gaia-gis.it/fossil/libspatialite/index
__ https://www.gaia-gis.it/gaia-sins/
.. _spatialite_source:

View File

@@ -165,7 +165,7 @@ Additional Resources:
__ https://en.wikipedia.org/wiki/Geodesy
__ https://en.wikipedia.org/wiki/Great_circle
__ https://www.spatialreference.org/ref/epsg/2796/
__ https://spatialreference.org/ref/epsg/2796/
__ https://spatialreference.org/
__ https://web.archive.org/web/20080302095452/http://welcome.warnercnr.colostate.edu/class_info/nr502/lg3/datums_coordinates/spcs.html
@@ -263,9 +263,9 @@ determining `when to use geography data type over geometry data type
<https://postgis.net/docs/using_postgis_dbmanagement.html#PostGIS_GeographyVSGeometry>`_.
.. rubric:: Footnotes
.. [#fnogc] OpenGIS Consortium, Inc., `Simple Feature Specification For SQL <https://www.opengeospatial.org/standards/sfs>`_.
.. [#fnogc] OpenGIS Consortium, Inc., `Simple Feature Specification For SQL <https://www.ogc.org/standards/sfs>`_.
.. [#fnogcsrid] *See id.* at Ch. 2.3.8, p. 39 (Geometry Values and Spatial Reference Systems).
.. [#fnsrid] Typically, SRID integer corresponds to an EPSG (`European Petroleum Survey Group <http://www.epsg.org>`_) identifier. However, it may also be associated with custom projections defined in spatial database's spatial reference systems table.
.. [#fnsrid] Typically, SRID integer corresponds to an EPSG (`European Petroleum Survey Group <https://epsg.org/>`_) identifier. However, it may also be associated with custom projections defined in spatial database's spatial reference systems table.
.. [#fnthematic] Terry A. Slocum, Robert B. McMaster, Fritz C. Kessler, & Hugh H. Howard, *Thematic Cartography and Geographic Visualization* (Prentice Hall, 2nd edition), at Ch. 7.1.3.
.. [#fndist] This limitation does not apply to PostGIS.
.. [#fngeography] Please refer to the `PostGIS Geography Type <https://postgis.net/docs/using_postgis_dbmanagement.html#PostGIS_Geography>`_ documentation for more details.

View File

@@ -19,4 +19,4 @@ Reference
--------------
.. rubric:: Footnotes
.. [#] https://www.opengeospatial.org/standards/kml
.. [#] https://www.ogc.org/standards/kml

View File

@@ -36,7 +36,7 @@ basic apps`_ project. [#]_
Proceed through the tutorial sections sequentially for step-by-step
instructions.
.. _OGC: https://www.opengeospatial.org/
.. _OGC: https://www.ogc.org/
.. _world borders: https://thematicmapping.org/downloads/world_borders.php
.. _GeoDjango basic apps: https://code.google.com/archive/p/geodjango-basic-apps
@@ -769,4 +769,4 @@ in your ``admin.py`` file::
.. [#] This point is the `University of Houston Law Center
<https://www.law.uh.edu/>`_.
.. [#] Open Geospatial Consortium, Inc., `OpenGIS Simple Feature Specification
For SQL <https://www.opengeospatial.org/standards/sfs>`_.
For SQL <https://www.ogc.org/standards/sfs>`_.

View File

@@ -273,7 +273,7 @@ Note:
links pointing to other language versions using the `hreflang
attribute`_. The default is ``False``.
.. _hreflang attribute: https://support.google.com/webmasters/answer/189077
.. _hreflang attribute: https://developers.google.com/search/docs/advanced/crawling/localized-versions
.. attribute:: Sitemap.x_default
@@ -516,7 +516,7 @@ generate a Google News compatible sitemap:
{% endspaceless %}
</urlset>
.. _`Google news sitemaps`: https://support.google.com/news/publisher/answer/74288?hl=en
.. _`Google news sitemaps`: https://support.google.com/news/publisher-center/answer/9606710
Pinging Google
==============
@@ -547,9 +547,9 @@ that: :func:`django.contrib.sitemaps.ping_google()`.
.. admonition:: Register with Google first!
The :func:`ping_google` command only works if you have registered your
site with `Google Webmaster Tools`_.
site with `Google Search Console`_.
.. _`Google Webmaster Tools`: https://www.google.com/webmasters/tools/
.. _`Google Search Console`: https://search.google.com/search-console/welcome
One useful way to call :func:`ping_google` is from a model's ``save()``
method::

View File

@@ -91,7 +91,7 @@ This accomplishes several things quite nicely:
raise Http404("Article does not exist on this site")
# ...
.. _ljworld.com: http://www.ljworld.com/
.. _ljworld.com: https://www2.ljworld.com/
.. _lawrence.com: http://www.lawrence.com/
Associating content with a single site

View File

@@ -273,7 +273,7 @@ Another option is to wrap each ``QuerySet`` using server-side cursors in an
for the duration of the transaction. This way, the server-side cursor will only
live for the duration of the transaction.
.. _PgBouncer: https://pgbouncer.github.io/
.. _PgBouncer: https://www.pgbouncer.org/
.. _manually-specified-autoincrement-pk:
@@ -387,7 +387,7 @@ MySQL has a couple drivers that implement the Python Database API described in
library.
.. _mysqlclient: https://pypi.org/project/mysqlclient/
.. _MySQL Connector/Python: https://dev.mysql.com/downloads/connector/python
.. _MySQL Connector/Python: https://dev.mysql.com/downloads/connector/python/
These drivers are thread-safe and provide connection pooling.
@@ -828,7 +828,7 @@ a row is added, changed, or deleted within the loop, then that row may or may
not appear, or may appear twice, in subsequent results fetched from the
iterator. Your code must handle this.
.. _`Isolation in SQLite`: https://sqlite.org/isolation.html
.. _`Isolation in SQLite`: https://www.sqlite.org/isolation.html
.. _sqlite-json1:

View File

@@ -1787,7 +1787,7 @@ Example usage::
django-admin migrate --pythonpath='/home/djangoprojects/myproject'
.. _import search path: https://www.diveinto.org/python3/your-first-python-program.html#importsearchpath
.. _import search path: https://diveinto.org/python3/your-first-python-program.html#importsearchpath
.. django-admin-option:: --settings SETTINGS

View File

@@ -453,7 +453,7 @@ in the :setting:`SECURE_REDIRECT_EXEMPT` setting.
Django can't seem to tell when a request actually is already secure, you
may need to set the :setting:`SECURE_PROXY_SSL_HEADER` setting.
.. _nginx: https://nginx.org
.. _nginx: https://nginx.org/
Session middleware
------------------

View File

@@ -1095,9 +1095,9 @@ Without passing ``safe=False``, a :exc:`TypeError` will be raised.
.. warning::
Before the `5th edition of ECMAScript
<https://www.ecma-international.org/ecma-262/5.1/index.html#sec-11.1.4>`_
it was possible to poison the JavaScript ``Array`` constructor. For this
reason, Django does not allow passing non-dict objects to the
<https://262.ecma-international.org/5.1/#sec-11.1.4>`_ it was possible to
poison the JavaScript ``Array`` constructor. For this reason, Django does
not allow passing non-dict objects to the
:class:`~django.http.JsonResponse` constructor by default. However, most
modern browsers implement ECMAScript 5 which removes this attack vector.
Therefore it is possible to disable this security precaution.

View File

@@ -1324,8 +1324,9 @@ If ``value`` is ``"String with spaces"``, the output will be
Formats a date according to the given format.
Uses a similar format as PHP's ``date()`` function (https://php.net/date)
with some differences.
Uses a similar format to PHP's `date()
<https://www.php.net/manual/en/function.date.php>`_ function with some
differences.
.. note::
These format characters are not used in Django outside of templates. They
@@ -2106,8 +2107,8 @@ individual elements of the sequence.
Returns a slice of the list.
Uses the same syntax as Python's list slicing. See
https://www.diveinto.org/python3/native-datatypes.html#slicinglists
for an introduction.
https://diveinto.org/python3/native-datatypes.html#slicinglists for an
introduction.
Example::