mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
Refs #34140 -- Corrected rst code-block and various formatting issues in docs.
This commit is contained in:
parent
c67ea79aa9
commit
ba755ca131
57 changed files with 443 additions and 269 deletions
|
@ -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',
|
||||
]
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue