mirror of
https://github.com/django/django.git
synced 2025-07-24 13:44:32 +00:00
[3.0.x] Removed unnecessary code-block directives in various docs.
Backport of 5e00bd1f77
from master
This commit is contained in:
parent
1e45b06cfd
commit
eb40426259
6 changed files with 17 additions and 48 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue