diff options
Diffstat (limited to 'reports')
-rw-r--r-- | reports/brpt.sqlite (renamed from reports/brpt-db) | bin | 669696 -> 669696 bytes | |||
-rw-r--r-- | reports/brpt/settings.py | 19 |
2 files changed, 8 insertions, 11 deletions
diff --git a/reports/brpt-db b/reports/brpt.sqlite Binary files differindex b2248d763..b2248d763 100644 --- a/reports/brpt-db +++ b/reports/brpt.sqlite diff --git a/reports/brpt/settings.py b/reports/brpt/settings.py index cd93abccf..63a7132ab 100644 --- a/reports/brpt/settings.py +++ b/reports/brpt/settings.py @@ -1,5 +1,8 @@ # Django settings for brpt project. - +from ConfigParser import ConfigParser, NoSectionError, NoOptionError +c = ConfigParser() +c.read(['/etc/bcfg2.conf'])#This needs to be configurable one day somehow +sqlitedbpath = "%s/etc/brpt.sqlite" % c.get('server', 'repository') DEBUG = True TEMPLATE_DEBUG = DEBUG @@ -10,16 +13,10 @@ ADMINS = ( MANAGERS = ADMINS -#DATABASE_ENGINE = 'sqlite3' # 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'. -#DATABASE_NAME = '/Users/joey/anl-mcs/dev/bcfg2/reports/brpt-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. -DATABASE_ENGINE = 'mysql' # 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'. -DATABASE_NAME = 'brpt' # Or path to database file if using sqlite3. -DATABASE_USER = 'brptadmin' # Not used with sqlite3. -DATABASE_PASSWORD = 'sekret' # Not used with sqlite3. +DATABASE_ENGINE = 'sqlite3' # 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'. +DATABASE_NAME = sqlitedbpath # 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. |