summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2010-11-17 17:54:46 +0100
committerÉtienne Loks <etienne.loks@peacefrogs.net>2010-11-17 17:54:46 +0100
commitdea5c621b770f9e72d41cab42e4a15e49a0bc1a9 (patch)
treeab55d387d170faa9d71388c56f2007d15c3599d3
parent19ed00e09e1f87f629666e4a37f51de25d173a57 (diff)
downloadChimère-dea5c621b770f9e72d41cab42e4a15e49a0bc1a9.tar.bz2
Chimère-dea5c621b770f9e72d41cab42e4a15e49a0bc1a9.zip
Adapt with the new way of defining database in Django 1.2
-rw-r--r--chimere/settings.py.example16
1 files changed, 10 insertions, 6 deletions
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