Ticket #2845: spell.diff

File spell.diff, 7.1 KB (added by treborhudson@…, 18 years ago)
  • docs/tutorial02.txt

     
    354354At top level, it displays all available years. Then it drills down to months
    355355and, ultimately, days.
    356356
    357 Now's also a good time to note that change lists give you free pagination. The
     357Now is also a good time to note that change lists give you free pagination. The
    358358default is to display 50 items per page. Change-list pagination, search boxes,
    359359filters, date-hierarchies and column-header-ordering all work together like you
    360360think they should.
  • docs/tutorial03.txt

     
    9191The ``poll_id='23'`` part comes from ``(?P<poll_id>\d+)``. Using parenthesis around a
    9292pattern "captures" the text matched by that pattern and sends it as an argument
    9393to the view function; the ``?P<poll_id>`` defines the name that will be used to
    94 identify the matched pattern; and ``\d+`` is a regular experession to match a sequence of
     94identify the matched pattern; and ``\d+`` is a regular expression to match a sequence of
    9595digits (i.e., a number).
    9696
    9797Because the URL patterns are regular expressions, there really is no limit on
  • docs/api_stability.txt

     
    8282That said, these APIs should *not* be considered stable, and are likely to
    8383change:
    8484
    85    - `Forms and validation`_ will most likely be compeltely rewritten to
    86      deemphasize Manipulators in favor of validation-aware models.
     85   - `Forms and validation`_ will most likely be completely rewritten to
     86     de-emphasize Manipulators in favor of validation-aware models.
    8787
    8888   - `Serialization`_ is under heavy development; changes are likely.
    8989
     
    9191     API changes may be necessary.
    9292
    9393   - Generic relations will most likely be moved out of core and into the
    94      content-types contrib package to avoid core dependacies on optional
     94     content-types contrib package to avoid core dependancies on optional
    9595     components.
    9696
    9797   - The comments framework, which is yet undocumented, will likely get a complete
  • docs/admin_css.txt

     
    8282.help
    8383    This is a custom class for blocks of inline help text explaining the
    8484    function of form elements. It makes text smaller and gray, and when applied
    85     to ``p`` elements withing ``.form-row`` elements (see Form Styles below),
     85    to ``p`` elements within ``.form-row`` elements (see Form Styles below),
    8686    it will offset the text to align with the form field. Use this for help
    8787    text, instead of ``small quiet``. It works on other elements, but try to
    8888    put the class on a ``p`` whenever you can.
  • docs/faq.txt

     
    499499How do I add database-specific options to my CREATE TABLE statements, such as specifying MyISAM as the table type?
    500500------------------------------------------------------------------------------------------------------------------
    501501
    502 We try to avoid adding special cases in the Django code to accomodate all the
     502We try to avoid adding special cases in the Django code to accommodate all the
    503503database-specific options such as table type, etc. If you'd like to use any of
    504504these options, create an `SQL initial data file`_ that contains ``ALTER TABLE``
    505505statements that do what you want to do. The initial data files are executed in
  • docs/testing.txt

     
    389389
    390390When you run ``./manage.py test``, Django looks at the ``TEST_RUNNER``
    391391setting to determine what to do. By default, ``TEST_RUNNER`` points to ``django.test.simple.run_tests``. This method defines the default Django
    392 testing behaviour. This behaviour involves:
     392testing behavior. This behavior involves:
    393393
    394394#. Performing global pre-test setup
    395395#. Creating the test database
     
    435435``create_test_db(verbosity=1, autoclobber=False)``
    436436    Creates a new test database, and run ``syncdb`` against it.
    437437
    438     ``verbosity`` has the same behaviour as in the test runner.
     438    ``verbosity`` has the same behavior as in the test runner.
    439439
    440440    ``Autoclobber`` describes the behavior that will occur if a database with
    441441    the same name as the test database is discovered. If ``autoclobber`` is False,
     
    450450    Destroys the database with the name ``settings.DATABASE_NAME`` matching,
    451451    and restores the value of ``settings.DATABASE_NAME`` to the provided name.
    452452
    453     ``verbosity`` has the same behaviour as in the test runner.
     453    ``verbosity`` has the same behavior as in the test runner.
  • docs/forms.txt

     
    489489test *and if the form submission contained data* for that field, all the
    490490validators for that field are called in turn. The emphasized portion in the
    491491last sentence is important: if a form field is not submitted (because it
    492 contains no data -- which is normal HTML behaviour), the validators are not
     492contains no data -- which is normal HTML behavior), the validators are not
    493493run against the field.
    494494
    495495This feature is particularly important for models using
  • docs/templates.txt

     
    10561056Takes an optional argument that is a variable containing the date to use as
    10571057the comparison point (without the argument, the comparison point is *now*).
    10581058For example, if ``blog_date`` is a date instance representing midnight on 1
    1059 June 2006, and ``comment_date`` is a date instanace for 08:00 on 1 June 2006,
     1059June 2006, and ``comment_date`` is a date instance for 08:00 on 1 June 2006,
    10601060then ``{{ comment_date|timesince:blog_date }}`` would return "8 hours".
    10611061
    10621062timeuntil
  • docs/templates_python.txt

     
    817817
    818818Another common type of template tag is the type that displays some data by
    819819rendering *another* template. For example, Django's admin interface uses custom
    820 template tags to display the buttons along the botton of the "add/change" form
     820template tags to display the buttons along the bottom of the "add/change" form
    821821pages. Those buttons always look the same, but the link targets change depending
    822822on the object being edited -- so they're a perfect case for using a small
    823823template that is filled with details from the current object. (In the admin's
Back to Top