From eb40426259cbfd8c4d25797c878424542cf1a1a7 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Mon, 23 Dec 2019 05:47:13 -0800 Subject: [3.0.x] Removed unnecessary code-block directives in various docs. Backport of 5e00bd1f7717149573df9607b848297a520881d3 from master --- docs/ref/contrib/staticfiles.txt | 4 +--- docs/ref/files/uploads.txt | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'docs/ref') 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) -- cgit v1.3