summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2023-03-01 13:00:10 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-03-01 13:02:54 +0100
commit9cf2a5df70051dffcefe21c6b27203e2d5804922 (patch)
treed4e8f797b63d2cea657acb2f19a5bdeab170810b /docs
parent498bff949925c672bcef17261e59316ef9b0bc6f (diff)
downloaddjango-9cf2a5df70051dffcefe21c6b27203e2d5804922.tar.gz
Refs #34140 -- Made minor edits to rst code-blocks.
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/performance.txt10
-rw-r--r--docs/topics/testing/tools.txt4
2 files changed, 10 insertions, 4 deletions
diff --git a/docs/topics/performance.txt b/docs/topics/performance.txt
index 04554226c0..4ba71880c4 100644
--- a/docs/topics/performance.txt
+++ b/docs/topics/performance.txt
@@ -120,9 +120,13 @@ do them faster than the template language can::
# of the Python objects
len(my_bicycles)
- # Django template filter
- # slower still, because it will have to count them in Python anyway,
- # and because of template language overheads
+.. code-block:: html+django
+
+ <!--
+ Django template filter
+ slower still, because it will have to count them in Python anyway,
+ and because of template language overheads
+ -->
{{ my_bicycles|length }}
Generally speaking, the most appropriate level for the job is the lowest-level
diff --git a/docs/topics/testing/tools.txt b/docs/topics/testing/tools.txt
index 703710082a..2f0e431caa 100644
--- a/docs/topics/testing/tools.txt
+++ b/docs/topics/testing/tools.txt
@@ -254,7 +254,9 @@ Use the ``django.test.Client`` class to make requests.
/login/
- ...with this POST data::
+ ...with this POST data:
+
+ .. code-block:: text
name=fred&passwd=secret