summaryrefslogtreecommitdiff
path: root/docs/ref/databases.txt
diff options
context:
space:
mode:
authorRamiro Morales <cramm0@gmail.com>2010-11-14 14:15:58 +0000
committerRamiro Morales <cramm0@gmail.com>2010-11-14 14:15:58 +0000
commit2b344d262815d715be63871e5434c109f85d27d4 (patch)
tree695d12c22fcd768218a2688d22c7644c504baa0c /docs/ref/databases.txt
parentff63a5bdeca3b88751a1e54a0cbc8adbb2c682eb (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/trunk@14559 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/ref/databases.txt')
-rw-r--r--docs/ref/databases.txt12
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/ref/databases.txt b/docs/ref/databases.txt
index cf7ef92eae..d36728435d 100644
--- a/docs/ref/databases.txt
+++ b/docs/ref/databases.txt
@@ -73,8 +73,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()
@@ -325,8 +325,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.
@@ -489,9 +489,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,
# ...
}