Ticket #1815: docs2.diff

File docs2.diff, 3.6 KB (added by nico@…, 18 years ago)
  • tutorial03.txt

     
    112112`Python documentation`_. Also, the O'Reilly book "Mastering Regular
    113113Expressions" by Jeffrey Friedl is fantastic.
    114114
    115 Finally, a performance note: These regular expressions are compiled the first
     115Finally, a performance note: these regular expressions are compiled the first
    116116time the URLconf module is loaded. They're super fast.
    117117
    118118.. _Wikipedia's entry: http://en.wikipedia.org/wiki/Regular_expression
  • db-api.txt

     
    10851085It works backwards, too. To refer to a "reverse" relationship, just use the
    10861086lowercase name of the model.
    10871087
    1088 This example retrieves all ``Blog`` objects who have at least one ``Entry``
     1088This example retrieves all ``Blog`` objects which have at least one ``Entry``
    10891089whose ``headline`` contains ``'Lennon'``::
    10901090
    10911091    Blog.objects.filter(entry__headline__contains='Lennon')
     
    11681168==============================
    11691169
    11701170Keyword argument queries -- in ``filter()``, etc. -- are "AND"ed together. If
    1171 you need to execute more more complex queries (for example, queries with ``OR``
     1171you need to execute more complex queries (for example, queries with ``OR``
    11721172statements), you can use ``Q`` objects.
    11731173
    11741174A ``Q`` object (``django.db.models.Q``) is an object used to encapsulate a
     
    15341534
    15351535Note that in the case of identical date values, these methods will use the ID
    15361536as a fallback check. This guarantees that no records are skipped or duplicated.
    1537 For a full example, see the `lookup API sample model_`.
     1537For a full example, see the `lookup API sample model`_.
    15381538
    15391539.. _lookup API sample model: http://www.djangoproject.com/documentation/models/lookup/
    15401540
  • transactions.txt

     
    122122        else:
    123123            transaction.commit()
    124124
    125 ..admonition:: An important note to users of earlier Django releases:
     125.. admonition:: An important note to users of earlier Django releases:
    126126
    127127    The database ``connection.commit()`` and ``connection.rollback()`` methods
    128128    (called ``db.commit()`` and ``db.rollback()`` in 0.91 and earlier) no longer
  • authentication.txt

     
    215215---------------
    216216
    217217``django.contrib.auth.models.AnonymousUser`` is a class that implements
    218 the ``django.contirb.auth.models.User`` interface, with these differences:
     218the ``django.contrib.auth.models.User`` interface, with these differences:
    219219
    220220    * ``id`` is always ``None``.
    221221    * ``is_anonymous()`` returns ``True`` instead of ``False``.
     
    437437Note that if your model doesn't have ``class Admin`` set when you run
    438438``syncdb``, the permissions won't be created. If you initialize your database
    439439and add ``class Admin`` to models after the fact, you'll need to run
    440 ``django-admin.py syncdb`` again. It will create any missing permissions for
     440``manage.py syncdb`` again. It will create any missing permissions for
    441441all of your installed apps.
    442442
    443443Custom permissions
     
    484484~~~~~~~
    485485
    486486``Permission`` objects have the standard data-access methods like any other
    487 `Django model`_:
     487`Django model`_.
    488488
    489489Authentication data in templates
    490490================================
Back to Top