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