From 994b512238becd233f0a89a7f149eee625eaa457 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Mon, 14 Dec 2015 17:58:42 +0100 Subject: [PATCH] user os.environ to get mysql credentials --- app/sandbox/settings.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/sandbox/settings.py b/app/sandbox/settings.py index 880a1882..aa8ba062 100644 --- a/app/sandbox/settings.py +++ b/app/sandbox/settings.py @@ -32,9 +32,9 @@ DATABASES = { # MySQL config 'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. - 'USER': 'telemeta', # Not used with sqlite3. - 'PASSWORD': 'iuvIlkyisFit2', # Not used with sqlite3. - 'NAME': 'telemeta', + 'USER': os.environ.get('DB_ENV_MYSQL_USER'), # Not used with sqlite3. + 'PASSWORD': os.environ.get('DB_ENV_MYSQL_PASSWORD'), # Not used with sqlite3. + 'NAME': os.environ.get('DB_ENV_MYSQL_DATABASE'), 'HOST': 'db', # Set to empty string for localhost. Not used with sqlite3. 'PORT': '3306', # Set to empty string for default. Not used with sqlite3. } -- 2.39.5