1
0
mirror of https://github.com/django/django.git synced 2025-01-03 15:06:09 +00:00

Added backticks to setuptools in docs.

This commit is contained in:
Mariusz Felisiak 2023-10-09 09:55:52 +02:00 committed by GitHub
parent 958e4cfe42
commit 54b23b1835
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 13 deletions

View File

@ -240,10 +240,10 @@ this. For a small app like polls, this process isn't too difficult.
#. Only Python modules and packages are included in the package by default. To #. Only Python modules and packages are included in the package by default. To
include additional files, we'll need to create a ``MANIFEST.in`` file. The include additional files, we'll need to create a ``MANIFEST.in`` file. The
setuptools docs referred to in the previous step discuss this file in more ``setuptools`` docs referred to in the previous step discuss this file in
detail. To include the templates, the ``README.rst`` and our ``LICENSE`` more detail. To include the templates, the ``README.rst`` and our
file, create a file ``django-polls/MANIFEST.in`` with the following ``LICENSE`` file, create a file ``django-polls/MANIFEST.in`` with the
contents: following contents:
.. code-block:: text .. code-block:: text
:caption: ``django-polls/MANIFEST.in`` :caption: ``django-polls/MANIFEST.in``

View File

@ -741,9 +741,9 @@ lists and tuples. All settings that were formerly tuples are now lists.
Django template loaders previously required an ``is_usable`` attribute to be Django template loaders previously required an ``is_usable`` attribute to be
defined. If a loader was configured in the template settings and this attribute defined. If a loader was configured in the template settings and this attribute
was ``False``, the loader would be silently ignored. In practice, this was only was ``False``, the loader would be silently ignored. In practice, this was only
used by the egg loader to detect if setuptools was installed. The ``is_usable`` used by the egg loader to detect if ``setuptools`` was installed. The
attribute is now removed and the egg loader instead fails at runtime if ``is_usable`` attribute is now removed and the egg loader instead fails at
setuptools is not installed. runtime if ``setuptools`` is not installed.
Related set direct assignment Related set direct assignment
----------------------------- -----------------------------
@ -1028,10 +1028,10 @@ a Django application with this structure:
.. _syntax-error-old-setuptools-django-19: .. _syntax-error-old-setuptools-django-19:
``SyntaxError`` when installing Django setuptools 5.5.x ``SyntaxError`` when installing Django ``setuptools`` 5.5.x
------------------------------------------------------- -----------------------------------------------------------
When installing Django 1.9 or 1.9.1 with setuptools 5.5.x, you'll see: When installing Django 1.9 or 1.9.1 with ``setuptools`` 5.5.x, you'll see:
.. code-block:: shell .. code-block:: shell
@ -1048,10 +1048,10 @@ When installing Django 1.9 or 1.9.1 with setuptools 5.5.x, you'll see:
SyntaxError: invalid syntax SyntaxError: invalid syntax
It's safe to ignore these errors (Django will still install just fine), but you It's safe to ignore these errors (Django will still install just fine), but you
can avoid them by upgrading setuptools to a more recent version. If you're can avoid them by upgrading ``setuptools`` to a more recent version. If you're
using pip, you can upgrade pip using ``python -m pip install -U pip`` which using pip, you can upgrade pip using ``python -m pip install -U pip`` which
will also upgrade setuptools. This is resolved in later versions of Django as will also upgrade ``setuptools``. This is resolved in later versions of Django
described in the :doc:`/releases/1.9.2`. as described in the :doc:`/releases/1.9.2`.
Miscellaneous Miscellaneous
------------- -------------