~ubuntu-branches/ubuntu/maverick/python-django/maverick

« back to all changes in this revision

Viewing changes to docs/howto/legacy-databases.txt

  • Committer: Bazaar Package Importer
  • Author(s): Chris Lamb
  • Date: 2010-05-21 07:52:55 UTC
  • mfrom: (1.1.10 upstream) (4.4.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100521075255-i1zpeyc0k8512pd7
Tags: 1.2-1
New upstream stable release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
====================================
19
19
 
20
20
You'll need to tell Django what your database connection parameters are, and
21
 
what the name of the database is. Do that by editing these settings in your
22
 
:ref:`settings file <topics-settings>`:
 
21
what the name of the database is. Do that by editing the :setting:`DATABASES`
 
22
setting and assigning values to the following keys for the ``'default'``
 
23
connection:
23
24
 
24
 
    * :setting:`DATABASE_NAME`
25
 
    * :setting:`DATABASE_ENGINE`
26
 
    * :setting:`DATABASE_USER`
27
 
    * :setting:`DATABASE_PASSWORD`
28
 
    * :setting:`DATABASE_HOST`
29
 
    * :setting:`DATABASE_PORT`
 
25
    * :setting:`NAME`
 
26
    * :setting:`ENGINE`
 
27
    * :setting:`USER`
 
28
    * :setting:`PASSWORD`
 
29
    * :setting:`HOST`
 
30
    * :setting:`PORT`
30
31
 
31
32
Auto-generate the models
32
33
========================