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

Fixed docs build with sphinxcontrib-spelling 7.5.0+.

sphinxcontrib-spelling 7.5.0+ includes captions of figures in the set
of nodes for which the text is checked.
This commit is contained in:
Mariusz Felisiak
2022-05-31 07:40:54 +02:00
parent 1058fc7023
commit ac90529cc5
31 changed files with 128 additions and 127 deletions

View File

@@ -245,7 +245,7 @@ Let's write the first view. Open the file ``polls/views.py``
and put the following Python code in it:
.. code-block:: python
:caption: polls/views.py
:caption: ``polls/views.py``
from django.http import HttpResponse
@@ -273,7 +273,7 @@ Your app directory should now look like::
In the ``polls/urls.py`` file include the following code:
.. code-block:: python
:caption: polls/urls.py
:caption: ``polls/urls.py``
from django.urls import path
@@ -288,7 +288,7 @@ The next step is to point the root URLconf at the ``polls.urls`` module. In
:func:`~django.urls.include` in the ``urlpatterns`` list, so you have:
.. code-block:: python
:caption: mysite/urls.py
:caption: ``mysite/urls.py``
from django.contrib import admin
from django.urls import include, path