mirror of
https://github.com/django/django.git
synced 2025-08-02 18:13:02 +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
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue