Author: ramiro
Date: 2010-11-14 08:15:58 -0600 (Sun, 14 Nov 2010)
New Revision: 14559
Modified:
django/trunk/docs/ref/databases.txt
Log:
Fixed #14536 -- Corrected DB connection OPTIONS examples in documentation.
Thanks denilsonsa for reporting the error.
Modified: django/trunk/docs/ref/databases.txt
===================================================================
--- django/trunk/docs/ref/databases.txt 2010-11-14 14:09:52 UTC (rev 14558)
+++ django/trunk/docs/ref/databases.txt 2010-11-14 14:15:58 UTC (rev 14559)
@@ -73,8 +73,8 @@
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 @@
* 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 @@
* Increase the default timeout value by setting the ``timeout`` database
option option::
- OPTIONS = {
+ 'OPTIONS': {
# ...
- "timeout": 20,
+ 'timeout': 20,
# ...
}
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.