Ticket #4690: rest-twiddling.diff

File rest-twiddling.diff, 6.0 KB (added by Paul Bx <pb@…>, 8 years ago)
  • docs/tutorial01.txt

     
    360360      quotes. The author of this tutorial runs PostgreSQL, so the example
    361361      output is in PostgreSQL syntax.
    362362
    363     * The `sql` command doesn't actually run the SQL in your database - it just
     363    * The ``sql`` command doesn't actually run the SQL in your database - it just
    364364      prints it to the screen so that you can see what SQL Django thinks is required.
    365365      If you wanted to, you could copy and paste this SQL into your database prompt.
    366366      However, as we will see shortly, Django provides an easier way of committing
  • docs/email.txt

     
    228228
    229229    * ``message()`` constructs a ``django.core.mail.SafeMIMEText`` object (a
    230230      sub-class of Python's ``email.MIMEText.MIMEText`` class) holding the
    231       message to be sent. If you ever need to extend the `EmailMessage` class,
     231      message to be sent. If you ever need to extend the ``EmailMessage`` class,
    232232      you'll probably want to override this method to put the content you wish
    233233      into the MIME object.
    234234
  • docs/db-api.txt

     
    17791779you can provide ``get_object_or_404()`` with a manager object instead.
    17801780For example::
    17811781
    1782     # Get the author of blog instance `e` with a name of 'Fred'
     1782    # Get the author of blog instance ``e`` with a name of 'Fred'
    17831783    a = get_object_or_404(e.authors, name='Fred')
    17841784
    17851785    # Use a custom manager 'recent_entries' in the search for an
  • docs/release_notes_0.96.txt

     
    2828
    2929Due to a bug in older versions of the ``MySQLdb`` Python module (which
    3030Django uses to connect to MySQL databases), Django's MySQL backend now
    31 requires version 1.2.1p2 or higher of `MySQLdb`, and will raise
     31requires version 1.2.1p2 or higher of ``MySQLdb``, and will raise
    3232exceptions if you attempt to use an older version.
    3333
    3434If you're currently unable to upgrade your copy of ``MySQLdb`` to meet
     
    4444    DATABASE_ENGINE = "mysql_old"
    4545
    4646However, we strongly encourage MySQL users to upgrade to a more recent
    47 version of `MySQLdb` as soon as possible, The "mysql_old" backend is
     47version of ``MySQLdb`` as soon as possible, The "mysql_old" backend is
    4848provided only to ease this transition, and is considered deprecated;
    4949aside from any necessary security fixes, it will not be actively
    5050maintained, and it will be removed in a future release of Django.
  • docs/legacy_databases.txt

     
    1818what the name of the database is. Do that by editing these settings in your
    1919`settings file`_:
    2020
    21     * `DATABASE_NAME`
     21    * `DATABASE_NAME`_
    2222    * `DATABASE_ENGINE`_
    2323    * `DATABASE_USER`_
    2424    * `DATABASE_PASSWORD`_
  • docs/serialization.txt

     
    4848~~~~~~~~~~~~~~~~
    4949
    5050If you only want a subset of fields to be serialized, you can
    51 specify a `fields` argument to the serializer::
     51specify a ``fields`` argument to the serializer::
    5252
    5353    from django.core import serializers
    5454    data = serializers.serialize('xml', SomeModel.objects.all(), fields=('name','size'))
    5555
    56 In this example, only the `name` and `size` attributes of each model will
     56In this example, only the ``name`` and ``size`` attributes of each model will
    5757be serialized.
    5858
    5959.. note::
  • docs/testing.txt

     
    253253        f.close()
    254254
    255255    will result in the evaluation of a POST request on ``/customers/wishes/``,
    256     with a POST dictionary that contains `name`, `attachment` (containing the
    257     file name), and `attachment_file` (containing the file data). Note that you
     256    with a POST dictionary that contains ``name``, ``attachment`` (containing the
     257    file name), and ``attachment_file`` (containing the file data). Note that you
    258258    need to manually close the file after it has been provided to the POST.
    259259
    260260``login(**credentials)``
     
    660660    tested. This is the same format returned by ``django.db.models.get_apps()``
    661661
    662662    Verbosity determines the amount of notification and debug information that
    663     will be printed to the console; `0` is no output, `1` is normal output,
    664     and `2` is verbose output.
     663    will be printed to the console; '0' is no output, '1' is normal output,
     664    and '2' is verbose output.
    665665
    666666    This method should return the number of tests that failed.
    667667
  • docs/authentication.txt

     
    461461Other built-in views
    462462--------------------
    463463
    464 In addition to the `login` view, the authentication system includes a
     464In addition to the ``login`` view, the authentication system includes a
    465465few other useful built-in views:
    466466
    467467``django.contrib.auth.views.logout``
  • docs/django-admin.txt

     
    513513
    514514Verbosity determines the amount of notification and debug information that
    515515will be printed to the console. '0' is no output, '1' is normal output,
    516 and `2` is verbose output.
     516and '2' is verbose output.
    517517
    518518--adminmedia
    519519------------
Back to Top