mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +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:
parent
1058fc7023
commit
ac90529cc5
31 changed files with 128 additions and 127 deletions
|
@ -141,7 +141,7 @@ These concepts are represented by Python classes. Edit the
|
|||
:file:`polls/models.py` file so it looks like this:
|
||||
|
||||
.. code-block:: python
|
||||
:caption: polls/models.py
|
||||
:caption: ``polls/models.py``
|
||||
|
||||
from django.db import models
|
||||
|
||||
|
@ -217,7 +217,7 @@ add that dotted path to the :setting:`INSTALLED_APPS` setting. It'll look like
|
|||
this:
|
||||
|
||||
.. code-block:: python
|
||||
:caption: mysite/settings.py
|
||||
:caption: ``mysite/settings.py``
|
||||
|
||||
INSTALLED_APPS = [
|
||||
'polls.apps.PollsConfig',
|
||||
|
@ -424,7 +424,7 @@ representation of this object. Let's fix that by editing the ``Question`` model
|
|||
``Choice``:
|
||||
|
||||
.. code-block:: python
|
||||
:caption: polls/models.py
|
||||
:caption: ``polls/models.py``
|
||||
|
||||
from django.db import models
|
||||
|
||||
|
@ -448,7 +448,7 @@ automatically-generated admin.
|
|||
Let's also add a custom method to this model:
|
||||
|
||||
.. code-block:: python
|
||||
:caption: polls/models.py
|
||||
:caption: ``polls/models.py``
|
||||
|
||||
import datetime
|
||||
|
||||
|
@ -646,7 +646,7 @@ have an admin interface. To do this, open the :file:`polls/admin.py` file, and
|
|||
edit it to look like this:
|
||||
|
||||
.. code-block:: python
|
||||
:caption: polls/admin.py
|
||||
:caption: ``polls/admin.py``
|
||||
|
||||
from django.contrib import admin
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue