diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2009-12-22 16:10:48 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2009-12-22 16:10:48 +0000 |
| commit | 0f2f08a7d78e3cff15bf98725f173f2e3382de0a (patch) | |
| tree | bbb7070c6b6127a654b7664604e0dacfe54585f6 /docs/topics | |
| parent | 5e54f6b263d981abd5aa1a46d208ee48f00f601d (diff) | |
Documentation markup fixes.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@11956 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/topics')
| -rw-r--r-- | docs/topics/db/multi-db.txt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/docs/topics/db/multi-db.txt b/docs/topics/db/multi-db.txt index 2e848f3430..8c42613ebb 100644 --- a/docs/topics/db/multi-db.txt +++ b/docs/topics/db/multi-db.txt @@ -28,7 +28,9 @@ whatever alias you choose. The following is an example ``settings.py`` snippet defining two databases - a default Postgres database, and a MySQL database called -``users``:: +``users``: + +.. code-block:: python DATABASES = { 'default': { @@ -56,7 +58,9 @@ It is possible to select the database for a ``QuerySet`` at any point during it's construction. To choose the database that a query will be preformed against simply call the ``using()`` method on the ``QuerySet``. ``using()`` takes a single argument: the alias of the -database on which you want to run the query. For example:: +database on which you want to run the query. For example: + +.. code-block:: python # This will run on the 'default' database... >>> Author.objects.all() |
