summaryrefslogtreecommitdiff
path: root/docs/howto
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2023-04-16 19:14:09 -0400
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-04-17 07:44:29 +0200
commit26f181939ebdad3811736aadeb5634bbdcaca025 (patch)
tree5f18511a1bb833a58b49660035b8bc800ffe9b89 /docs/howto
parent509401313471ac0e9ef2e0c575c02db4436d6158 (diff)
[4.2.x] Used extlinks for PyPI links.
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> Backport of 2c4dc6476083c853b654e462c7ff65dbe0334c9e from main
Diffstat (limited to 'docs/howto')
-rw-r--r--docs/howto/deployment/asgi/daphne.txt6
-rw-r--r--docs/howto/outputting-pdf.txt5
-rw-r--r--docs/howto/windows.txt10
3 files changed, 7 insertions, 14 deletions
diff --git a/docs/howto/deployment/asgi/daphne.txt b/docs/howto/deployment/asgi/daphne.txt
index 48c0ab41c1..a8867955f8 100644
--- a/docs/howto/deployment/asgi/daphne.txt
+++ b/docs/howto/deployment/asgi/daphne.txt
@@ -2,10 +2,8 @@
How to use Django with Daphne
=============================
-Daphne_ is a pure-Python ASGI server for UNIX, maintained by members of the
-Django project. It acts as the reference server for ASGI.
-
-.. _Daphne: https://pypi.org/project/daphne/
+:pypi:`Daphne <daphne>` is a pure-Python ASGI server for UNIX, maintained by
+members of the Django project. It acts as the reference server for ASGI.
Installing Daphne
===================
diff --git a/docs/howto/outputting-pdf.txt b/docs/howto/outputting-pdf.txt
index 83426c1448..11b3fb97a5 100644
--- a/docs/howto/outputting-pdf.txt
+++ b/docs/howto/outputting-pdf.txt
@@ -20,8 +20,8 @@ participating in a March Madness contest.
Install ReportLab
=================
-The ReportLab library is `available on PyPI`_. A `user guide`_ (not
-coincidentally, a PDF file) is also available for download.
+The ReportLab library is :pypi:`available on PyPI <reportlab>`. A `user guide`_
+(not coincidentally, a PDF file) is also available for download.
You can install ReportLab with ``pip``:
.. console::
@@ -36,7 +36,6 @@ Test your installation by importing it in the Python interactive interpreter:
If that command doesn't raise any errors, the installation worked.
-.. _available on PyPI: https://pypi.org/project/reportlab/
.. _user guide: https://www.reportlab.com/docs/reportlab-userguide.pdf
Write your view
diff --git a/docs/howto/windows.txt b/docs/howto/windows.txt
index cd9acda543..ffb06ff143 100644
--- a/docs/howto/windows.txt
+++ b/docs/howto/windows.txt
@@ -40,13 +40,11 @@ matches the version you installed by executing:
About ``pip``
=============
-`pip`_ is a package manager for Python and is included by default with the
+:pypi:`pip` is a package manager for Python and is included by default with the
Python installer. It helps to install and uninstall Python packages
(such as Django!). For the rest of the installation, we'll use ``pip`` to
install Python packages from the command line.
-.. _pip: https://pypi.org/project/pip/
-
.. _virtualenvironment:
Setting up a virtual environment
@@ -106,8 +104,8 @@ terminal. In modern terminals this should work for both CMD and PowerShell. If
for some reason this needs to be disabled, set the environmental variable
:envvar:`DJANGO_COLORS` to ``nocolor``.
-On older Windows versions, or legacy terminals, colorama_ must be installed to
-enable syntax coloring:
+On older Windows versions, or legacy terminals, :pypi:`colorama` must be
+installed to enable syntax coloring:
.. code-block:: doscon
@@ -115,8 +113,6 @@ enable syntax coloring:
See :ref:`syntax-coloring` for more information on color settings.
-.. _colorama: https://pypi.org/project/colorama/
-
Common pitfalls
===============