Skip to content

Commit

Permalink
Updated various links in docs to avoid redirects
Browse files Browse the repository at this point in the history
Thanks Tim Graham and Mariusz Felisiak for review and completion.
  • Loading branch information
claudep committed May 22, 2017
1 parent a3ba266 commit 01f6586
Show file tree
Hide file tree
Showing 37 changed files with 70 additions and 78 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Expand Up @@ -369,5 +369,5 @@ def django_release():
# epub_use_index = True

# -- custom extension options --------------------------------------------------
cve_url = 'https://web.nvd.nist.gov/view/vuln/detail?vulnId=%s'
cve_url = 'https://nvd.nist.gov/view/vuln/detail?vulnId=%s'
ticket_url = 'https://code.djangoproject.com/ticket/%s'
2 changes: 1 addition & 1 deletion docs/faq/install.txt
Expand Up @@ -36,7 +36,7 @@ PostgreSQL fans, and MySQL_, `SQLite 3`_, and Oracle_ are also supported.
.. _PostgreSQL: https://www.postgresql.org/
.. _MySQL: https://www.mysql.com/
.. _`SQLite 3`: https://www.sqlite.org/
.. _Oracle: http://www.oracle.com/
.. _Oracle: https://www.oracle.com/

.. _faq-python-version-support:

Expand Down
2 changes: 1 addition & 1 deletion docs/howto/deployment/checklist.txt
Expand Up @@ -234,7 +234,7 @@ See :doc:`/howto/error-reporting` for details on error reporting by email.
Consider using an error monitoring system such as Sentry_ before your
inbox is flooded by reports. Sentry can also aggregate logs.

.. _Sentry: https://docs.getsentry.com/
.. _Sentry: https://docs.sentry.io/

Customize the default error views
---------------------------------
Expand Down
2 changes: 1 addition & 1 deletion docs/howto/deployment/wsgi/modwsgi.txt
Expand Up @@ -179,7 +179,7 @@ If you are using a version of Apache older than 2.4, replace
``Require all granted`` with ``Allow from all`` and also add the line
``Order deny,allow`` above it.

.. _Nginx: http://wiki.nginx.org/Main
.. _Nginx: https://nginx.org/en/
.. _Apache: https://httpd.apache.org/

.. More details on configuring a mod_wsgi site to serve static files can be found
Expand Down
8 changes: 2 additions & 6 deletions docs/howto/deployment/wsgi/uwsgi.txt
Expand Up @@ -7,7 +7,7 @@ How to use Django with uWSGI
uWSGI_ is a fast, self-healing and developer/sysadmin-friendly application
container server coded in pure C.

.. _uWSGI: https://projects.unbit.it/uwsgi/
.. _uWSGI: https://uwsgi-docs.readthedocs.io/

.. seealso::

Expand Down Expand Up @@ -39,18 +39,14 @@ uWSGI model

uWSGI operates on a client-server model. Your Web server (e.g., nginx, Apache)
communicates with a `django-uwsgi` "worker" process to serve dynamic content.
See uWSGI's `background documentation`_ for more detail.

.. _background documentation: https://projects.unbit.it/uwsgi/wiki/Background

Configuring and starting the uWSGI server for Django
----------------------------------------------------

uWSGI supports multiple ways to configure the process. See uWSGI's
`configuration documentation`_ and `examples`_.
`configuration documentation`_.

.. _configuration documentation: https://uwsgi.readthedocs.io/en/latest/Configuration.html
.. _examples: https://projects.unbit.it/uwsgi/wiki/Example

Here's an example command to start a uWSGI server::

Expand Down
2 changes: 1 addition & 1 deletion docs/howto/jython.txt
Expand Up @@ -27,7 +27,7 @@ such as `Apache Tomcat`_. Full JavaEE applications servers such as `GlassFish`_
or `JBoss`_ are also OK, if you need the extra features they include.

.. _`Apache Tomcat`: https://tomcat.apache.org/
.. _GlassFish: https://glassfish.java.net/
.. _GlassFish: https://javaee.github.io/glassfish/
.. _JBoss: https://www.jboss.org/

Installing Django
Expand Down
6 changes: 3 additions & 3 deletions docs/howto/static-files/deployment.txt
Expand Up @@ -73,7 +73,7 @@ type of web server -- faster but less full-featured. Some common choices are:
* Nginx_
* A stripped-down version of Apache_

.. _Nginx: http://wiki.nginx.org/Main
.. _Nginx: https://nginx.org/en/
.. _Apache: https://httpd.apache.org/

Configuring these servers is out of scope of this document; check each
Expand Down Expand Up @@ -142,8 +142,8 @@ as changing your :setting:`STATICFILES_STORAGE` setting.
For details on how you'd write one of these backends, see
:doc:`/howto/custom-file-storage`. There are 3rd party apps available that
provide storage backends for many common file storage APIs. A good starting
point is the `overview at djangopackages.com
<https://www.djangopackages.com/grids/g/storage-backends/>`_.
point is the `overview at djangopackages.org
<https://djangopackages.org/grids/g/storage-backends/>`_.

Learn more
==========
Expand Down
2 changes: 1 addition & 1 deletion docs/internals/contributing/localizing.txt
Expand Up @@ -70,7 +70,7 @@ Django source tree, as for any code change:

.. _Transifex: https://www.transifex.com/
.. _Django project page: https://www.transifex.com/django/django/
.. _Transifex User Guide: http://docs.transifex.com/
.. _Transifex User Guide: https://docs.transifex.com/

.. _translating-documentation:

Expand Down
4 changes: 2 additions & 2 deletions docs/internals/contributing/writing-code/unit-tests.txt
Expand Up @@ -60,7 +60,7 @@ Having problems? See :ref:`troubleshooting-unit-tests` for some common issues.
Running tests using ``tox``
---------------------------

`Tox <http://tox.testrun.org/>`_ is a tool for running tests in different
`Tox <https://tox.readthedocs.io/>`_ is a tool for running tests in different
virtual environments. Django includes a basic ``tox.ini`` that automates some
checks that our build server performs on pull requests. To run the unit tests
and other checks (such as :ref:`import sorting <coding-style-imports>`, the
Expand Down Expand Up @@ -272,7 +272,7 @@ associated tests will be skipped.
.. _gettext: https://www.gnu.org/software/gettext/manual/gettext.html
.. _selenium: https://pypi.python.org/pypi/selenium
.. _sqlparse: https://pypi.python.org/pypi/sqlparse
.. _pip requirements files: https://pip.pypa.io/en/latest/user_guide.html#requirements-files
.. _pip requirements files: https://pip.pypa.io/en/latest/user_guide/#requirements-files

Code coverage
-------------
Expand Down
4 changes: 2 additions & 2 deletions docs/internals/contributing/writing-code/working-with-git.txt
Expand Up @@ -18,7 +18,7 @@ Installing Git
==============

Django uses `Git`_ for its source control. You can `download
<http://git-scm.com/download>`_ Git, but it's often easier to install with
<https://git-scm.com/download>`_ Git, but it's often easier to install with
your operating system's package manager.

Django's `Git repository`_ is hosted on `GitHub`_, and it is recommended
Expand All @@ -34,7 +34,7 @@ Note that ``user.name`` should be your real name, not your GitHub nick. GitHub
should know the email you use in the ``user.email`` field, as this will be
used to associate your commits with your GitHub account.

.. _Git: http://git-scm.com/
.. _Git: https://git-scm.com/
.. _Git repository: https://github.com/django/django/
.. _GitHub: https://github.com/

Expand Down
2 changes: 1 addition & 1 deletion docs/internals/contributing/writing-documentation.txt
Expand Up @@ -427,7 +427,7 @@ Before you commit your docs, it's a good idea to run the spelling checker.
You'll need to install a couple packages first:

* `pyenchant <https://pypi.python.org/pypi/pyenchant/>`_ (which requires
`enchant <http://www.abisource.com/projects/enchant/>`_)
`enchant <https://www.abisource.com/projects/enchant/>`_)

* `sphinxcontrib-spelling
<https://pypi.python.org/pypi/sphinxcontrib-spelling/>`_
Expand Down
4 changes: 2 additions & 2 deletions docs/internals/git.txt
Expand Up @@ -52,8 +52,8 @@ The source code for the `Djangoproject.com <https://www.djangoproject.com/>`_
website can be found at `github.com/django/djangoproject.com
<https://github.com/django/djangoproject.com>`_.

.. _Git: http://git-scm.com/
.. _documentation: http://git-scm.com/documentation
.. _Git: https://git-scm.com/
.. _documentation: https://git-scm.com/documentation
.. _branches: https://github.com/django/django/branches
.. _tags: https://github.com/django/django/tags

Expand Down
2 changes: 1 addition & 1 deletion docs/internals/howto-release-django.txt
Expand Up @@ -155,7 +155,7 @@ OK, this is the fun part, where we actually push out a release!
#. Check `Jenkins`__ is green for the version(s) you're putting out. You
probably shouldn't issue a release until it's green.

__ http://djangoci.com
__ https://djangoci.com

#. A release always begins from a release branch, so you should make sure
you're on a stable branch and up-to-date. For example::
Expand Down
6 changes: 3 additions & 3 deletions docs/intro/contributing.txt
Expand Up @@ -71,7 +71,7 @@ probably got the answers.
.. admonition:: Python 3 required!

The current development version of Django doesn't support Python 2.7. Get
Python 3 at `Python's download page <https://www.python.org/download/>`_ or
Python 3 at `Python's download page <https://www.python.org/downloads/>`_ or
with your operating system's package manager.

.. admonition:: For Windows users
Expand Down Expand Up @@ -105,7 +105,7 @@ have to download and install it, see `Git's download page`__.
If you're not that familiar with Git, you can always find out more about its
commands (once it's installed) by typing ``git help`` into the command line.

__ http://git-scm.com/download
__ https://git-scm.com/download

Getting a copy of Django's development version
==============================================
Expand Down Expand Up @@ -299,7 +299,7 @@ present in Django's official builds. If you click to view a particular build,
you can view the "Configuration Matrix" which shows failures broken down by
Python version and database backend.

__ http://djangoci.com
__ https://djangoci.com

.. note::

Expand Down
2 changes: 1 addition & 1 deletion docs/intro/install.txt
Expand Up @@ -16,7 +16,7 @@ database called SQLite_ so you won't need to set up a database just yet.

.. _sqlite: https://sqlite.org/

Get the latest version of Python at https://www.python.org/download/ or with
Get the latest version of Python at https://www.python.org/downloads/ or with
your operating system's package manager.

.. admonition:: Django on Jython
Expand Down
13 changes: 6 additions & 7 deletions docs/intro/reusable-apps.txt
Expand Up @@ -19,11 +19,10 @@ could save some of this repeated work?
Reusability is the way of life in Python. `The Python Package Index (PyPI)
<https://pypi.python.org/pypi>`_ has a vast range of packages you can use in
your own Python programs. Check out `Django Packages
<https://www.djangopackages.com>`_ for existing reusable apps you could
incorporate in your project. Django itself is also just a Python package. This
means that you can take existing Python packages or Django apps and compose
them into your own web project. You only need to write the parts that make
your project unique.
<https://djangopackages.org>`_ for existing reusable apps you could incorporate
in your project. Django itself is also just a Python package. This means that
you can take existing Python packages or Django apps and compose them into your
own web project. You only need to write the parts that make your project unique.

Let's say you were starting a new project that needed a polls app like the one
we've been working on. How do you make this app reusable? Luckily, you're well
Expand Down Expand Up @@ -257,7 +256,7 @@ this. For a small app like polls, this process isn't too difficult.
new package, ``django-polls-0.1.tar.gz``.

For more information on packaging, see Python's `Tutorial on Packaging and
Distributing Projects <https://packaging.python.org/en/latest/distributing.html>`_.
Distributing Projects <https://packaging.python.org/distributing/>`_.

Using your own package
======================
Expand Down Expand Up @@ -303,7 +302,7 @@ the world! If this wasn't just an example, you could now:

* Post the package on a public repository, such as `the Python Package Index
(PyPI)`_. `packaging.python.org <https://packaging.python.org>`_ has `a good
tutorial <https://packaging.python.org/en/latest/distributing.html#uploading-your-project-to-pypi>`_
tutorial <https://packaging.python.org/distributing/#uploading-your-project-to-pypi>`_
for doing this.

Installing Python packages with virtualenv
Expand Down
6 changes: 3 additions & 3 deletions docs/misc/design-philosophies.txt
Expand Up @@ -27,7 +27,7 @@ template system a programmer uses.
Although Django comes with a full stack for convenience, the pieces of the
stack are independent of another wherever possible.

.. _`loose coupling and tight cohesion`: http://c2.com/cgi/wiki?CouplingAndCohesion
.. _`loose coupling and tight cohesion`: http://wiki.c2.com/?CouplingAndCohesion

.. _less-code:

Expand Down Expand Up @@ -66,7 +66,7 @@ as possible.

The `discussion of DRY on the Portland Pattern Repository`__

__ http://c2.com/cgi/wiki?DontRepeatYourself
__ http://wiki.c2.com/?DontRepeatYourself

.. _explicit-is-better-than-implicit:

Expand Down Expand Up @@ -110,7 +110,7 @@ it (its human-readable name, options like default ordering, etc.) are
defined in the model class; all the information needed to understand a
given model should be stored *in* the model.

.. _`Active Record`: http://www.martinfowler.com/eaaCatalog/activeRecord.html
.. _`Active Record`: https://www.martinfowler.com/eaaCatalog/activeRecord.html

Database API
============
Expand Down
4 changes: 2 additions & 2 deletions docs/ref/clickjacking.txt
Expand Up @@ -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:
Expand Down Expand Up @@ -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
4 changes: 2 additions & 2 deletions docs/ref/contrib/gis/forms-api.txt
Expand Up @@ -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
===============
Expand Down
2 changes: 1 addition & 1 deletion docs/ref/contrib/gis/geos.txt
Expand Up @@ -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/

Expand Down
6 changes: 3 additions & 3 deletions docs/ref/contrib/gis/install/index.txt
Expand Up @@ -257,7 +257,7 @@ Summary::
$ brew install gdal
$ brew install libgeoip

__ http://brew.sh/
__ https://brew.sh/
.. _Xcode: https://developer.apple.com/xcode/

.. _kyngchaos:
Expand Down Expand Up @@ -402,8 +402,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:

Expand Down
2 changes: 1 addition & 1 deletion docs/ref/contrib/gis/install/spatialite.txt
Expand Up @@ -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/
2 changes: 1 addition & 1 deletion docs/ref/contrib/postgres/fields.txt
Expand Up @@ -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``
===============
Expand Down
8 changes: 4 additions & 4 deletions docs/ref/contrib/sitemaps.txt
Expand Up @@ -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
========
Expand Down Expand Up @@ -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

Expand All @@ -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

Expand Down Expand Up @@ -460,7 +460,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 %}
Expand Down
4 changes: 2 additions & 2 deletions docs/ref/csrf.txt
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions docs/ref/databases.txt
Expand Up @@ -721,8 +721,8 @@ Oracle notes
Django supports `Oracle Database Server`_ versions 12.1 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:
Expand Down

0 comments on commit 01f6586

Please sign in to comment.