summaryrefslogtreecommitdiff
path: root/docs/topics/http
diff options
context:
space:
mode:
authorJoseph Victor Zammit <jvzammit@gmail.com>2023-01-23 21:29:05 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-02-28 12:54:33 +0100
commit5bdd6223a24b2bcd0ee32251d6f3ce20e934a1dd (patch)
tree3c9b132c5e77bdcde426764aa9fddecaf90ae2af /docs/topics/http
parentfae76b81ce6d13245abc42752f0a82f16a9ba35f (diff)
[4.2.x] Refs #34140 -- Corrected rst code-block and various formatting issues in docs.
Backport of ba755ca13123d2691a0926ddb64e5d0a2906a880 from main
Diffstat (limited to 'docs/topics/http')
-rw-r--r--docs/topics/http/shortcuts.txt6
-rw-r--r--docs/topics/http/urls.txt4
2 files changed, 7 insertions, 3 deletions
diff --git a/docs/topics/http/shortcuts.txt b/docs/topics/http/shortcuts.txt
index b5f8fd7617..b28533147b 100644
--- a/docs/topics/http/shortcuts.txt
+++ b/docs/topics/http/shortcuts.txt
@@ -127,13 +127,15 @@ You can use the :func:`redirect` function in a number of ways.
...
return redirect('some-view-name', foo='bar')
-#. By passing a hardcoded URL to redirect to::
+#. By passing a hardcoded URL to redirect to:
+ ::
def my_view(request):
...
return redirect('/some/url/')
- This also works with full URLs::
+ This also works with full URLs:
+ ::
def my_view(request):
...
diff --git a/docs/topics/http/urls.txt b/docs/topics/http/urls.txt
index 823567f5f4..2734882f72 100644
--- a/docs/topics/http/urls.txt
+++ b/docs/topics/http/urls.txt
@@ -865,7 +865,9 @@ Secondly, you can include an object that contains embedded namespace data. If
you ``include()`` a list of :func:`~django.urls.path` or
:func:`~django.urls.re_path` instances, the URLs contained in that object
will be added to the global namespace. However, you can also ``include()`` a
-2-tuple containing::
+2-tuple containing:
+
+.. code-block:: text
(<list of path()/re_path() instances>, <application namespace>)