|
@@ -1,5 +1,7 @@
|
|
|
# Django settings for hello project.
|
|
|
|
|
|
+import os
|
|
|
+
|
|
|
DEBUG = False
|
|
|
TEMPLATE_DEBUG = DEBUG
|
|
|
|
|
@@ -11,10 +13,10 @@ MANAGERS = ADMINS
|
|
|
|
|
|
DATABASES = {
|
|
|
'default': {
|
|
|
- 'ENGINE': 'django.db.backends.mysql', # 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.
|
|
|
+ 'ENGINE': 'django.db.backends.' + os.environ['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': '', # 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,
|