From: Guillaume Pellerin Date: Mon, 14 Dec 2015 16:58:42 +0000 (+0100) Subject: user os.environ to get mysql credentials X-Git-Tag: 1.6b~7^2~39^2~5 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=994b512238becd233f0a89a7f149eee625eaa457;p=telemeta.git user os.environ to get mysql credentials --- 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. }