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/forms | |
| 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/forms')
| -rw-r--r-- | docs/topics/forms/index.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/topics/forms/index.txt b/docs/topics/forms/index.txt index e153d73bab..48639aa094 100644 --- a/docs/topics/forms/index.txt +++ b/docs/topics/forms/index.txt @@ -227,7 +227,7 @@ We already know what we want our HTML form to look like. Our starting point for it in Django is this: .. code-block:: python - :caption: forms.py + :caption: ``forms.py`` from django import forms @@ -277,7 +277,7 @@ To handle the form we need to instantiate it in the view for the URL where we want it to be published: .. code-block:: python - :caption: views.py + :caption: ``views.py`` from django.http import HttpResponseRedirect from django.shortcuts import render @@ -404,7 +404,7 @@ Consider a more useful form than our minimal example above, which we could use to implement "contact me" functionality on a personal website: .. code-block:: python - :caption: forms.py + :caption: ``forms.py`` from django import forms @@ -453,7 +453,7 @@ values to a Python ``int`` and ``float`` respectively. Here's how the form data could be processed in the view that handles this form: .. code-block:: python - :caption: views.py + :caption: ``views.py`` from django.core.mail import send_mail @@ -526,7 +526,7 @@ In your templates: Then you can configure the :setting:`FORM_RENDERER` setting: .. code-block:: python - :caption: settings.py + :caption: ``settings.py`` from django.forms.renderers import TemplatesSetting |
