# HG changeset patch # User Madhusudan.C.S # Date 1294430437 -19800 # Node ID 5b3204f3618c02724b0dbb848f4c0f009e37181d # Parent f1a789359ec8793458142c8744d955207186f155 PyTask from now uses PostgreSQL. Moved the sensitive information to local untracked file. diff -r f1a789359ec8 -r 5b3204f3618c pytask/settings.py --- a/pytask/settings.py Sat Jan 08 01:30:02 2011 +0530 +++ b/pytask/settings.py Sat Jan 08 01:30:37 2011 +0530 @@ -1,5 +1,10 @@ # Django settings for pytask project. +import os + +from pytask.local import DATABASE_PASSWORD +from pytask.local import DATABASE_USER + DEBUG = True TEMPLATE_DEBUG = DEBUG @@ -9,10 +14,12 @@ MANAGERS = ADMINS -DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. -DATABASE_NAME = 'pytask.db' # Or path to database file if using sqlite3. -DATABASE_USER = '' # Not used with sqlite3. -DATABASE_PASSWORD = '' # Not used with sqlite3. +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. @@ -69,11 +76,11 @@ # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". # Always use forward slashes, even on Windows. # Don't forget to use absolute paths, not relative paths. - './templates', + os.path.join(os.path.dirname(__file__), 'templates') ) -ACCOUNT_ACTIVATION_DAYS = 5 -DEFAULT_FROM_EMAIL = 'no-reply@pytask.in' +ACCOUNT_ACTIVATION_DAYS = 7 +DEFAULT_FROM_EMAIL = 'info@fossee.in' LOGIN_REDIRECT_URL = '/' FORCE_LOWERCASE_TAGS = True