Moved all database related settings to local file. buildout
authorMadhusudan.C.S <madhusudancs@gmail.com>
Mon, 10 Jan 2011 18:41:14 +0530
branchbuildout
changeset 234 8895c6020abc
parent 233 cb3fbfc78c34
child 237 2c72b08003f5
Moved all database related settings to local file.
pytask/settings.py
--- a/pytask/settings.py	Mon Jan 10 18:34:48 2011 +0530
+++ b/pytask/settings.py	Mon Jan 10 18:41:14 2011 +0530
@@ -2,10 +2,7 @@
 
 import os
 
-from pytask.local import DATABASE_PASSWORD
-from pytask.local import DATABASE_USER
-from pytask.local import DEBUG 
-from pytask.local import TEMPLATE_DEBUG
+from pytask.local import *
 
 ADMINS = (
     ('Madhusudan C.S.', 'madhusudancs@fossee.in'),
@@ -13,15 +10,6 @@
 
 MANAGERS = ADMINS
 
-DATABASE_ENGINE = 'postgresql_psycopg2'           # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
-DATABASE_NAME = 'pytask'             # Or path to database file if using sqlite3.
-
-# These variables are set in a file not tracked by revision control systems.
-#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.
-
 # Local time zone for this installation. Choices can be found here:
 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
 # although not all choices may be available on all operating systems.