diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-05-31 07:40:54 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-06-27 07:44:27 +0200 |
| commit | 6c0ee6179796aa67a2403d85f2759bd4d45c93bc (patch) | |
| tree | b505f8d05ae716475252c0499435fee185d1ed64 /docs/topics/http | |
| parent | d783ce3d8df10b9b8c99d67418d45934238a49db (diff) | |
[4.1.x] 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.
Backport of ac90529cc58507d9a07610809a795ec5fc3cbf8c from main
Diffstat (limited to 'docs/topics/http')
| -rw-r--r-- | docs/topics/http/file-uploads.txt | 8 | ||||
| -rw-r--r-- | docs/topics/http/urls.txt | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/docs/topics/http/file-uploads.txt b/docs/topics/http/file-uploads.txt index a46caefed9..94b74321fa 100644 --- a/docs/topics/http/file-uploads.txt +++ b/docs/topics/http/file-uploads.txt @@ -22,7 +22,7 @@ Basic file uploads Consider a form containing a :class:`~django.forms.FileField`: .. code-block:: python - :caption: forms.py + :caption: ``forms.py`` from django import forms @@ -46,7 +46,7 @@ Most of the time, you'll pass the file data from ``request`` into the form as described in :ref:`binding-uploaded-files`. This would look something like: .. code-block:: python - :caption: views.py + :caption: ``views.py`` from django.http import HttpResponseRedirect from django.shortcuts import render @@ -146,7 +146,7 @@ If you want to upload multiple files using one form field, set the ``multiple`` HTML attribute of field's widget: .. code-block:: python - :caption: forms.py + :caption: ``forms.py`` from django import forms @@ -158,7 +158,7 @@ Then override the ``post`` method of your uploads: .. code-block:: python - :caption: views.py + :caption: ``views.py`` from django.views.generic.edit import FormView from .forms import FileFieldForm diff --git a/docs/topics/http/urls.txt b/docs/topics/http/urls.txt index ab612547b0..9ac0f93ff0 100644 --- a/docs/topics/http/urls.txt +++ b/docs/topics/http/urls.txt @@ -767,7 +767,7 @@ so that it takes the instance namespace into consideration when creating and displaying polls. .. code-block:: python - :caption: urls.py + :caption: ``urls.py`` from django.urls import include, path @@ -777,7 +777,7 @@ displaying polls. ] .. code-block:: python - :caption: polls/urls.py + :caption: ``polls/urls.py`` from django.urls import path @@ -836,7 +836,7 @@ module, or a string reference to the module, to :func:`~django.urls.include`, not the list of ``urlpatterns`` itself. .. code-block:: python - :caption: polls/urls.py + :caption: ``polls/urls.py`` from django.urls import path @@ -850,7 +850,7 @@ not the list of ``urlpatterns`` itself. ] .. code-block:: python - :caption: urls.py + :caption: ``urls.py`` from django.urls import include, path |
