Refs #34140 -- Corrected rst code-block and various formatting issues in docs.

This commit is contained in:
Joseph Victor Zammit 2023-01-23 21:29:05 +01:00 committed by Mariusz Felisiak
parent c67ea79aa9
commit ba755ca131
57 changed files with 443 additions and 269 deletions

View file

@ -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',
]

View file

@ -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)

View file

@ -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: