Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #12668 -- Corrected some typos in the multi-db docs. Thanks to …

…mattimustang for the eagle eyes.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12278 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit dbad025637463c31ba9d99c47546b409b8190b4b 1 parent c158438
Russell Keith-Magee authored January 23, 2010

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. 8  docs/topics/db/multi-db.txt
8  docs/topics/db/multi-db.txt
@@ -149,8 +149,8 @@ At present, the only hint that will be provided is ``instance``, an
149 149
 object instance that is related to the read or write operation that is
150 150
 underway. This might be the instance that is being saved, or it might
151 151
 be an instance that is being added in a many-to-many relation. In some
152  
-cases, no instance hint will be provided at all. The router check for
153  
-the existence of an instance hint, and determine if hat hint should be
  152
+cases, no instance hint will be provided at all. The router checks for
  153
+the existence of an instance hint, and determine if that hint should be
154 154
 used to alter routing behavior.
155 155
 
156 156
 Using routers
@@ -192,11 +192,11 @@ An example
192 192
     doesn't provide any solution for handling replication lag (i.e.,
193 193
     query inconsistencies introduced because of the time taken for a
194 194
     write to propagate to the slaves). It also doesn't consider the
195  
-    interaction of transactions with the database utiliztion strategy.
  195
+    interaction of transactions with the database utilization strategy.
196 196
 
197 197
 So - what does this mean in practice? Say you want ``contrib.auth`` to
198 198
 exist on the 'credentials' database, and you want all other models in a
199  
-master/slave relationship between the databses 'master', 'slave1' and
  199
+master/slave relationship between the databases 'master', 'slave1' and
200 200
 'slave2'. To implement this, you would need 2 routers::
201 201
 
202 202
     class AuthRouter(object):

0 notes on commit dbad025

Please sign in to comment.
Something went wrong with that request. Please try again.