Ticket #1815: docs.diff

File docs.diff, 4.4 KB (added by nico@…, 18 years ago)

Fixes for errors and warnings in docs

  • docs/tutorial01.txt

     
    6969    * ``urls.py``: The URL declarations for this Django project; a "table of
    7070      contents" of your Django-powered site.
    7171
    72 .. _more on packages: http://docs.python.org/tut/node8.html#packages
     72.. _more about packages: http://docs.python.org/tut/node8.html#packages
    7373
    7474The development server
    7575----------------------
  • docs/request_response.txt

     
    102102    ``AuthenticationMiddleware`` activated. For more, see
    103103    `Authentication in Web requests`_.
    104104
    105     .. Authentication in Web requests: http://www.djangoproject.com/documentation/authentication/#authentication-in-web-requests
     105    .. _Authentication in Web requests: http://www.djangoproject.com/documentation/authentication/#authentication-in-web-requests
    106106
    107107``session``
    108108    A readable-and-writable, dictionary-like object that represents the current
  • docs/db-api.txt

     
    10701070~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    10711071
    10721072Django offers a powerful and intuitive way to "follow" relationships in
    1073 lookups, taking care of the SQL ``JOIN``s for you automatically, behind the
     1073lookups, taking care of the SQL ``JOIN``\s for you automatically, behind the
    10741074scenes. To span a relationship, just use the field name of related fields
    10751075across models, separated by double underscores, until you get to the field you
    10761076want.
  • docs/model-api.txt

     
    5252    * The name of the table, ``myapp_person``, is automatically derived from
    5353      some model metadata but can be overridden. See _`Table names` below.
    5454    * An ``id`` field is added automatically, but this behavior can be
    55       overriden. See _`Automatic primary key fields` below.
     55      overriden. See `Automatic primary key fields`_ below.
    5656    * The ``CREATE TABLE`` SQL in this example is formatted using PostgreSQL
    5757      syntax, but it's worth noting Django uses SQL tailored to the database
    5858      backend specified in your `settings file`_.
     
    124124An ``IntegerField`` that automatically increments according to available IDs.
    125125You usually won't need to use this directly; a primary key field will
    126126automatically be added to your model if you don't specify otherwise. See
    127 _`Automatic primary key fields`.
     127`Automatic primary key fields`_.
    128128
    129129``BooleanField``
    130130~~~~~~~~~~~~~~~~
     
    11111111isn't an ``AutoField`` and has ``editable=True``, in a single fieldset, in
    11121112the same order as the fields are defined in the model.
    11131113
    1114 The ``field_options`` dictionary can have the following keys::
     1114The ``field_options`` dictionary can have the following keys:
    11151115
    11161116``fields``
    11171117~~~~~~~~~~
     
    13121312section of the database API docs, but this section specifically touches on
    13131313model options that customize ``Manager`` behavior.
    13141314
     1315.. _Retrieving objects: http://www.djangoproject.com/documentation/db_api/#retrieving-objects
     1316
    13151317Manager names
    13161318-------------
    13171319
     
    14011403
    14021404...the statement ``Book.objects.all()`` will return all books in the database.
    14031405
    1404 You can override a ``Manager``'s base ``QuerySet`` by overriding the
     1406You can override a ``Manager``\'s base ``QuerySet`` by overriding the
    14051407``Manager.get_query_set()`` method. ``get_query_set()`` should return a
    14061408``QuerySet`` with the properties you require.
    14071409
    1408 For example, the following model has *two* ``Manager``s -- one that returns
     1410For example, the following model has *two* ``Manager``\s -- one that returns
    14091411all objects, and one that returns only the books by Roald Dahl::
    14101412
    14111413    # First, define the Manager subclass.
  • docs/generic_views.txt

     
    6262instance; see the `database API docs`_ for more information about ``Queryset``
    6363objects.
    6464
     65.. _database API docs: http://www.djangoproject.com/documentation/db_api/
     66
    6567"Simple" generic views
    6668======================
    6769
Back to Top