Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #14536 -- Corrected DB connection OPTIONS examples in documenta…

…tion. Thanks denilsonsa for reporting the error.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14558 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit a052bcb0119f0e7885ff9fa9bb5e7d39b838b6aa 1 parent 17bd39a
Ramiro Morales authored November 14, 2010

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

  1. 12  docs/ref/databases.txt
12  docs/ref/databases.txt
@@ -55,8 +55,8 @@ autocommit behavior is enabled by setting the ``autocommit`` key in
55 55
 the :setting:`OPTIONS` part of your database configuration in
56 56
 :setting:`DATABASES`::
57 57
 
58  
-    OPTIONS = {
59  
-        "autocommit": True,
  58
+    'OPTIONS': {
  59
+        'autocommit': True,
60 60
     }
61 61
 
62 62
 In this configuration, Django still ensures that :ref:`delete()
@@ -306,8 +306,8 @@ storage engine, you have a couple of options.
306 306
     * Another option is to use the ``init_command`` option for MySQLdb prior to
307 307
       creating your tables::
308 308
 
309  
-          OPTIONS = {
310  
-             "init_command": "SET storage_engine=INNODB",
  309
+          'OPTIONS': {
  310
+             'init_command': 'SET storage_engine=INNODB',
311 311
           }
312 312
 
313 313
       This sets the default storage engine upon connecting to the database.
@@ -470,9 +470,9 @@ If you're getting this error, you can solve it by:
470 470
     * Increase the default timeout value by setting the ``timeout`` database
471 471
       option option::
472 472
 
473  
-          OPTIONS = {
  473
+          'OPTIONS': {
474 474
               # ...
475  
-             "timeout": 20,
  475
+              'timeout': 20,
476 476
               # ...
477 477
           }
478 478
 

0 notes on commit a052bcb

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