From 0b152b4adf519eaec4d40aeb423cdc71e962263a Mon Sep 17 00:00:00 2001 From: Jason Ward Date: Mon, 18 Mar 2013 14:37:08 -0400 Subject: [PATCH] refs #10: updated the DB definition for django 1.4/1.5 --- example/settings.py | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/example/settings.py b/example/settings.py index 326125f..80946c3 100644 --- a/example/settings.py +++ b/example/settings.py @@ -8,12 +8,16 @@ ADMINS = ( MANAGERS = ADMINS -DATABASE_ENGINE = 'sqlite3' -DATABASE_NAME = os.path.join(PROJECT_ROOT, 'example.db') -DATABASE_USER = '' -DATABASE_PASSWORD = '' -DATABASE_HOST = '' -DATABASE_PORT = '' +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': os.path.join(PROJECT_ROOT, 'example.db'), + 'USER': '', + 'PASSWORD': '', + 'HOST': '', + 'PORT': '', + } +} TIME_ZONE = 'America/Chicago' @@ -83,6 +87,6 @@ TEMPLATE_DIRS = ( # Use local_settings.py for things to override privately try: - from local_settings import * + from local_settings import * # noqa except ImportError: pass