diff options
| author | Ramiro Morales <cramm0@gmail.com> | 2010-11-14 14:09:52 +0000 |
|---|---|---|
| committer | Ramiro Morales <cramm0@gmail.com> | 2010-11-14 14:09:52 +0000 |
| commit | a052bcb0119f0e7885ff9fa9bb5e7d39b838b6aa (patch) | |
| tree | fa7b1f229114f9efe93d51a97773170a70c2f551 | |
| parent | 17bd39ae5a0337f8bcd535a5fb03d27aaf0ab0c4 (diff) | |
Fixed #14536 -- Corrected DB connection OPTIONS examples in documentation. 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
| -rw-r--r-- | docs/ref/databases.txt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/ref/databases.txt b/docs/ref/databases.txt index b71cc359be..bff3ec6840 100644 --- a/docs/ref/databases.txt +++ b/docs/ref/databases.txt @@ -55,8 +55,8 @@ autocommit behavior is enabled by setting the ``autocommit`` key in the :setting:`OPTIONS` part of your database configuration in :setting:`DATABASES`:: - OPTIONS = { - "autocommit": True, + 'OPTIONS': { + 'autocommit': True, } In this configuration, Django still ensures that :ref:`delete() @@ -306,8 +306,8 @@ storage engine, you have a couple of options. * Another option is to use the ``init_command`` option for MySQLdb prior to creating your tables:: - OPTIONS = { - "init_command": "SET storage_engine=INNODB", + 'OPTIONS': { + 'init_command': 'SET storage_engine=INNODB', } 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: * Increase the default timeout value by setting the ``timeout`` database option option:: - OPTIONS = { + 'OPTIONS': { # ... - "timeout": 20, + 'timeout': 20, # ... } |
