From 671781013bba895f647631de7c14a819454e3ab9 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Tue, 9 Mar 2010 20:27:51 +0000 Subject: [PATCH] Split out db settings into a seperate file --- dbsettings.py | 6 ++++++ settings.py | 8 ++------ 2 files changed, 8 insertions(+), 6 deletions(-) create mode 100644 dbsettings.py diff --git a/dbsettings.py b/dbsettings.py new file mode 100644 index 0000000..b509e1f --- /dev/null +++ b/dbsettings.py @@ -0,0 +1,6 @@ +DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. +DATABASE_NAME = 'dreddit_sso.db' # Or path to database file if using sqlite3. +DATABASE_USER = '' # Not used with sqlite3. +DATABASE_PASSWORD = '' # 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. diff --git a/settings.py b/settings.py index 66453fd..1c07e09 100644 --- a/settings.py +++ b/settings.py @@ -11,12 +11,8 @@ ADMINS = ( MANAGERS = ADMINS -DATABASE_ENGINE = 'mysql' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. -DATABASE_NAME = 'dreddit_sso' # Or path to database file if using sqlite3. -DATABASE_USER = 'dreddit_sso' # Not used with sqlite3. -DATABASE_PASSWORD = 'bf6431670c657b9b62f08353d61047c4552ed3d4' # 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. +# Import db settings from dbsettings.py +from dbsettings import * # Local time zone for this installation. Choices can be found here: # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name