Skip to content

Commit

Permalink
Fixed #4690 -- Fixed a bunch of ReST errors in docs. Thanks, Paul B.
Browse files Browse the repository at this point in the history
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5571 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
adrianholovaty committed Jul 1, 2007
1 parent 3336bd5 commit 510e545
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion docs/authentication.txt
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ block::
Other built-in views
--------------------

In addition to the `login` view, the authentication system includes a
In addition to the ``login`` view, the authentication system includes a
few other useful built-in views:

``django.contrib.auth.views.logout``
Expand Down
2 changes: 1 addition & 1 deletion docs/db-api.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1831,7 +1831,7 @@ use the default manager, or if you want to search a list of related objects,
you can provide ``get_object_or_404()`` with a manager object instead.
For example::

# Get the author of blog instance `e` with a name of 'Fred'
# Get the author of blog instance e with a name of 'Fred'
a = get_object_or_404(e.authors, name='Fred')

# Use a custom manager 'recent_entries' in the search for an
Expand Down
2 changes: 1 addition & 1 deletion docs/django-admin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ Example usage::

Verbosity determines the amount of notification and debug information that
will be printed to the console. '0' is no output, '1' is normal output,
and `2` is verbose output.
and ``2`` is verbose output.

--adminmedia
------------
Expand Down
2 changes: 1 addition & 1 deletion docs/legacy_databases.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ You'll need to tell Django what your database connection parameters are, and
what the name of the database is. Do that by editing these settings in your
`settings file`_:

* `DATABASE_NAME`
* `DATABASE_NAME`_
* `DATABASE_ENGINE`_
* `DATABASE_USER`_
* `DATABASE_PASSWORD`_
Expand Down
2 changes: 1 addition & 1 deletion docs/release_notes_0.96.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ The following changes may require you to update your code when you switch from

Due to a bug in older versions of the ``MySQLdb`` Python module (which
Django uses to connect to MySQL databases), Django's MySQL backend now
requires version 1.2.1p2 or higher of `MySQLdb`, and will raise
requires version 1.2.1p2 or higher of ``MySQLdb``, and will raise
exceptions if you attempt to use an older version.

If you're currently unable to upgrade your copy of ``MySQLdb`` to meet
Expand Down
4 changes: 2 additions & 2 deletions docs/serialization.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ Subset of fields
~~~~~~~~~~~~~~~~

If you only want a subset of fields to be serialized, you can
specify a `fields` argument to the serializer::
specify a ``fields`` argument to the serializer::

from django.core import serializers
data = serializers.serialize('xml', SomeModel.objects.all(), fields=('name','size'))

In this example, only the `name` and `size` attributes of each model will
In this example, only the ``name`` and ``size`` attributes of each model will
be serialized.

.. note::
Expand Down
8 changes: 4 additions & 4 deletions docs/testing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ can be invoked on the ``Client`` instance.
f.close()

will result in the evaluation of a POST request on ``/customers/wishes/``,
with a POST dictionary that contains `name`, `attachment` (containing the
file name), and `attachment_file` (containing the file data). Note that you
with a POST dictionary that contains ``name``, ``attachment`` (containing the
file name), and ``attachment_file`` (containing the file data). Note that you
need to manually close the file after it has been provided to the POST.

``login(**credentials)``
Expand Down Expand Up @@ -660,8 +660,8 @@ arguments:
tested. This is the same format returned by ``django.db.models.get_apps()``

Verbosity determines the amount of notification and debug information that
will be printed to the console; `0` is no output, `1` is normal output,
and `2` is verbose output.
will be printed to the console; ``0`` is no output, ``1`` is normal output,
and ``2`` is verbose output.

This method should return the number of tests that failed.

Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial01.txt
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ Note the following:
quotes. The author of this tutorial runs PostgreSQL, so the example
output is in PostgreSQL syntax.

* The `sql` command doesn't actually run the SQL in your database - it just
* The ``sql`` command doesn't actually run the SQL in your database - it just
prints it to the screen so that you can see what SQL Django thinks is required.
If you wanted to, you could copy and paste this SQL into your database prompt.
However, as we will see shortly, Django provides an easier way of committing
Expand Down

0 comments on commit 510e545

Please sign in to comment.