summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/contrib/staticfiles.txt4
-rw-r--r--docs/ref/files/uploads.txt4
2 files changed, 2 insertions, 6 deletions
diff --git a/docs/ref/contrib/staticfiles.txt b/docs/ref/contrib/staticfiles.txt
index 6fb6f55a0b..8ec84f8a68 100644
--- a/docs/ref/contrib/staticfiles.txt
+++ b/docs/ref/contrib/staticfiles.txt
@@ -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
diff --git a/docs/ref/files/uploads.txt b/docs/ref/files/uploads.txt
index 4b58d2a4e2..cd6cc0df5f 100644
--- a/docs/ref/files/uploads.txt
+++ b/docs/ref/files/uploads.txt
@@ -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)