Commits

Anonymous committed 39e130a

Fixed #14536 -- Corrected DB connection OPTIONS examples in documentation. Thanks denilsonsa for reporting the error.

  • Participants
  • Parent commits e28033a

Comments (0)

Files changed (1)

File docs/ref/databases.txt

 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()
     * 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.
     * Increase the default timeout value by setting the ``timeout`` database
       option option::
 
-          OPTIONS = {
+          'OPTIONS': {
               # ...
-             "timeout": 20,
+              'timeout': 20,
               # ...
           }