Anonymous avatar Anonymous committed 52f1d5f

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

Comments (0)

Files changed (1)

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,
               # ...
           }
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.