[3.0.x] Removed unnecessary code-block directives in various docs.

Backport of 5e00bd1f77 from master
This commit is contained in:
Jon Dufresne 2019-12-23 05:47:13 -08:00 committed by Mariusz Felisiak
parent 1e45b06cfd
commit eb40426259
6 changed files with 17 additions and 48 deletions

View file

@ -139,9 +139,7 @@ a more persistent way than providing the ``--ignore`` command option at each
``collectstatic`` invocation. Provide a custom :class:`~django.apps.AppConfig`
class, override the ``ignore_patterns`` attribute of this class and replace
``'django.contrib.staticfiles'`` with that class path in your
:setting:`INSTALLED_APPS` setting:
.. code-block:: python
:setting:`INSTALLED_APPS` setting::
from django.contrib.staticfiles.apps import StaticFilesConfig

View file

@ -73,9 +73,7 @@ Here are some useful attributes of ``UploadedFile``:
.. note::
Like regular Python files, you can read the file line-by-line by iterating
over the uploaded file:
.. code-block:: python
over the uploaded file::
for line in uploadedfile:
do_something_with(line)