From dea5c621b770f9e72d41cab42e4a15e49a0bc1a9 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 17 Nov 2010 17:54:46 +0100 Subject: Adapt with the new way of defining database in Django 1.2 --- chimere/settings.py.example | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'chimere/settings.py.example') diff --git a/chimere/settings.py.example b/chimere/settings.py.example index c0f6cb6..edfaa2e 100644 --- a/chimere/settings.py.example +++ b/chimere/settings.py.example @@ -49,12 +49,16 @@ ADMINS = ( MANAGERS = ADMINS -DATABASE_ENGINE = 'postgresql_psycopg2' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'. -DATABASE_NAME = 'ratatouille' # Or path to database file if using sqlite3. -DATABASE_USER = 'ratatouille' # Not used with sqlite3. -DATABASE_PASSWORD = 'wiki' # Not used with sqlite3. -DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3. -DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3. +DATABASES = { + 'default': { + 'NAME': 'ratatouille', + 'ENGINE': 'django.contrib.gis.db.backends.postgis', + 'HOST': 'localhost', + 'PORT': '5432', + 'USER': 'ratatouille', + 'PASSWORD': 'wiki', + }, +} # Local time zone for this installation. Choices can be found here: # http://www.postgresql.org/docs/8.1/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE -- cgit v1.2.3