Django

Code

Changeset 7119

Show
Ignore:
Timestamp:
02/15/08 05:38:53 (5 months ago)
Author:
mtredinnick
Message:

Made a bunch of tiny documentation formatting and typo fixes.

Thanks, quicklizard, adamv, Gary Wilson, superjudge and David Pretty.

Fixed #6554, #6573 ,#6592, #6595, #6608.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/django-admin.txt

    r6983 r7119  
    718718 
    719719Note that this option is unnecessary in ``manage.py``, because it uses 
    720 ``settings.py`` from the current project by default.  
     720``settings.py`` from the current project by default. 
    721721 
    722722Extra niceties 
     
    766766                explode.py 
    767767        views.py 
    768          
     768 
    769769In this example, the ``explode`` command will be made available to any project 
    770 that includes the ``fancy_blog`` application in ``settings.INSTALLED_APPS``. 
     770that includes the ``blog`` application in ``settings.INSTALLED_APPS``. 
    771771 
    772772The ``explode.py`` module has only one requirement -- it must define a class 
  • django/trunk/docs/model-api.txt

    r6879 r7119  
    385385~~~~~~~~~~~~~~~~~~ 
    386386 
    387 An IP address, in string format (i.e. "24.124.1.30"). 
     387An IP address, in string format (e.g. "192.0.2.30"). 
    388388 
    389389The admin represents this as an ``<input type="text">`` (a single-line input). 
     
    953953 
    954954    ``symmetrical``          Only used in the definition of ManyToManyFields on self. 
    955                              Consider the following model: 
    956  
    957                              class Person(models.Model): 
    958                                  friends = models.ManyToManyField("self") 
     955                             Consider the following model:: 
     956 
     957                                 class Person(models.Model): 
     958                                     friends = models.ManyToManyField("self") 
    959959 
    960960                             When Django processes this model, it identifies that it has 
     
    18731873If you define a ``__unicode__()`` method on your model and not a ``__str__()`` 
    18741874method, Django will automatically provide you with a ``__str__()`` that calls 
    1875 ``__unicode()__`` and then converts the result correctly to a UTF-8 encoded 
     1875``__unicode__()`` and then converts the result correctly to a UTF-8 encoded 
    18761876string object. This is recommended development practice: define only 
    18771877``__unicode__()`` and let Django take care of the conversion to string objects 
  • django/trunk/tests/modeltests/ordering/models.py

    r5876 r7119  
    33 
    44Specify default ordering for a model using the ``ordering`` attribute, which 
    5 should be a list or tuple of field names. This tells Django how to order the 
    6 results of ``get_list()`` and other similar functions. 
     5should be a list or tuple of field names. This tells Django how to order 
     6queryset results. 
    77 
    88If a field name in ``ordering`` starts with a hyphen, that field will be