# HG changeset patch # User gibus # Date 1339158501 -7200 # Node ID 49184f325653f8681a5bc0666a52ca63c7636fc0 # Parent 019889d4c614eca0de5998d249ddfedad1a61994 Avoid warnings for deprecated instructions in djan 1.3 diff -r 019889d4c614 -r 49184f325653 settings_local_sample.py --- a/settings_local_sample.py Fri Jun 08 13:59:50 2012 +0200 +++ b/settings_local_sample.py Fri Jun 08 14:28:21 2012 +0200 @@ -5,12 +5,16 @@ YUI_DEBUG = DEBUG # use expanded yui version (i.e. not -min) YUI_DISTANT = False -DATABASE_ENGINE = 'postgresql_psycopg2' # YOUR_SETTINGS # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. -DATABASE_NAME = 'db_name' # YOUR_SETTINGS # Or path to database file if using sqlite3. -DATABASE_USER = 'db_user' # YOUR_SETTINGS # Not used with sqlite3. -DATABASE_PASSWORD = 'db_pw' # YOUR_SETTINGS # Not used with sqlite3. -DATABASE_HOST = '' # YOUR_SETTINGS # Set to empty string for localhost. Not used with sqlite3. -DATABASE_PORT = '' # YOUR_SETTINGS # Set to empty string for default. Not used with sqlite3. +DATABASES = { + 'default': { + 'ENGINE': 'postgresql_psycopg2', # YOUR_SETTINGS # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. + 'NAME': 'db_name', # YOUR_SETTINGS # Or path to database file if using sqlite3. + 'USER': 'db_user', # YOUR_SETTINGS # Not used with sqlite3. + 'PASSWORD': 'db_pw', # YOUR_SETTINGS # Not used with sqlite3. + 'HOST': '', # YOUR_SETTINGS # Set to empty string for localhost. Not used with sqlite3. + 'PORT': '', # YOUR_SETTINGS # Set to empty string for default. Not used with sqlite3. + } +} SITE_URL = "http://127.0.0.1:8000" # YOUR_SETTINGS