Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #21070 -- Added a more complex database configuration example.

Thanks joejasinski for the suggestion.
  • Loading branch information...
commit e15f7f31d048ead5453b5ee810235cf88b42b3cc 1 parent 4116764
authored September 23, 2013 timgraham committed September 23, 2013

Showing 1 changed file with 19 additions and 3 deletions. Show diff stats Hide diff stats

  1. 22  docs/ref/settings.txt
22  docs/ref/settings.txt
@@ -419,12 +419,28 @@ SQLite. This can be configured using the following::
419 419
     DATABASES = {
420 420
         'default': {
421 421
             'ENGINE': 'django.db.backends.sqlite3',
422  
-            'NAME': 'mydatabase'
  422
+            'NAME': 'mydatabase',
423 423
         }
424 424
     }
425 425
 
426  
-For other database backends, or more complex SQLite configurations, other options
427  
-will be required. The following inner options are available.
  426
+When connecting to other database backends, such as MySQL, Oracle, or
  427
+PostgreSQL, additional connection parameters will be required. See
  428
+the :setting:`ENGINE <DATABASE-ENGINE>` setting below on how to specify
  429
+other database types. This example is for PostgreSQL::
  430
+
  431
+    DATABASES = {
  432
+        'default': {
  433
+            'ENGINE':'django.db.backends.postgresql_psycopg2',
  434
+            'NAME': 'mydatabase',
  435
+            'USER': 'mydatabaseuser',
  436
+            'PASSWORD': 'mypassword',
  437
+            'HOST': '127.0.0.1',
  438
+            'PORT': '5432',
  439
+        }
  440
+    }
  441
+
  442
+The following inner options that may be required for more complex
  443
+configurations are available:
428 444
 
429 445
 .. setting:: DATABASE-ATOMIC_REQUESTS
430 446
 

0 notes on commit e15f7f3

Please sign in to comment.
Something went wrong with that request. Please try again.