Used extlinks for PyPI links.

Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
This commit is contained in:
Tim Graham 2023-04-16 19:14:09 -04:00 committed by Mariusz Felisiak
parent 255f534590
commit 2c4dc64760
36 changed files with 117 additions and 204 deletions

View file

@ -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
===================

View file

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

View file

@ -39,13 +39,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
@ -105,8 +103,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
@ -114,8 +112,6 @@ enable syntax coloring:
See :ref:`syntax-coloring` for more information on color settings.
.. _colorama: https://pypi.org/project/colorama/
Common pitfalls
===============