diff options
| author | Joseph Victor Zammit <jvzammit@gmail.com> | 2023-01-23 21:29:05 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-02-28 12:54:33 +0100 |
| commit | 5bdd6223a24b2bcd0ee32251d6f3ce20e934a1dd (patch) | |
| tree | 3c9b132c5e77bdcde426764aa9fddecaf90ae2af /docs/intro | |
| parent | fae76b81ce6d13245abc42752f0a82f16a9ba35f (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/intro')
| -rw-r--r-- | docs/intro/reusable-apps.txt | 2 | ||||
| -rw-r--r-- | docs/intro/tutorial03.txt | 4 | ||||
| -rw-r--r-- | docs/intro/tutorial07.txt | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/docs/intro/reusable-apps.txt b/docs/intro/reusable-apps.txt index 905dce8c54..314469b87d 100644 --- a/docs/intro/reusable-apps.txt +++ b/docs/intro/reusable-apps.txt @@ -163,7 +163,7 @@ this. For a small app like polls, this process isn't too difficult. 1. Add "polls" to your INSTALLED_APPS setting like this:: INSTALLED_APPS = [ - ... + ..., 'polls', ] diff --git a/docs/intro/tutorial03.txt b/docs/intro/tutorial03.txt index b9c9d2b54e..c0b3b00a51 100644 --- a/docs/intro/tutorial03.txt +++ b/docs/intro/tutorial03.txt @@ -115,7 +115,9 @@ and traverses the patterns in order. After finding the match at ``'polls/'``, it strips off the matching text (``"polls/"``) and sends the remaining text -- ``"34/"`` -- to the 'polls.urls' URLconf for further processing. There it matches ``'<int:question_id>/'``, resulting in a call to the ``detail()`` view -like so:: +like so: + +.. code-block:: pycon detail(request=<HttpRequest object>, question_id=34) diff --git a/docs/intro/tutorial07.txt b/docs/intro/tutorial07.txt index 54567fcbb5..14548590b3 100644 --- a/docs/intro/tutorial07.txt +++ b/docs/intro/tutorial07.txt @@ -171,7 +171,7 @@ tabular way of displaying inline related objects. To use it, change the :caption: ``polls/admin.py`` class ChoiceInline(admin.TabularInline): - #... + ... With that ``TabularInline`` (instead of ``StackedInline``), the related objects are displayed in a more compact, table-based format: |
