diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2019-12-23 05:47:13 -0800 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-12-23 14:48:16 +0100 |
| commit | eb40426259cbfd8c4d25797c878424542cf1a1a7 (patch) | |
| tree | 2eaeee44b77b8e1a0e829baa7a0f1cafcdb8f6b6 /docs/ref | |
| parent | 1e45b06cfd87c4866a201202200ae888a8b8e259 (diff) | |
[3.0.x] Removed unnecessary code-block directives in various docs.
Backport of 5e00bd1f7717149573df9607b848297a520881d3 from master
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/contrib/staticfiles.txt | 4 | ||||
| -rw-r--r-- | docs/ref/files/uploads.txt | 4 |
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) |
