|
@@ -7,18 +7,23 @@ ADMINS = ()
|
|
|
|
|
|
MANAGERS = ADMINS
|
|
|
|
|
|
+_django_db = os.getenv('DJANGO_DB', "")
|
|
|
+
|
|
|
DATABASES = {
|
|
|
'default': {
|
|
|
- 'ENGINE': 'django.db.backends.' + os.environ['DJANGO_DB'], # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
|
|
|
+ 'ENGINE': 'django.db.backends.' + _django_db, # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
|
|
|
'NAME': 'hello_world', # Or path to database file if using sqlite3.
|
|
|
'USER': 'benchmarkdbuser', # Not used with sqlite3.
|
|
|
'PASSWORD': 'benchmarkdbpass', # Not used with sqlite3.
|
|
|
- 'HOST': 'tfb-database', # Set to empty string for localhost. Not used with sqlite3.
|
|
|
+ 'HOST': 'tfb-database', # Set to empty string for localhost. Not used with sqlite3.
|
|
|
'PORT': '', # Set to empty string for default. Not used with sqlite3.
|
|
|
'CONN_MAX_AGE': 30,
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+if not _django_db:
|
|
|
+ DATABASES = { }
|
|
|
+
|
|
|
TIME_ZONE = 'America/Chicago'
|
|
|
LANGUAGE_CODE = 'en-us'
|
|
|
USE_I18N = False
|