]> git.parisson.com Git - telemeta.git/commitdiff
user os.environ to get mysql credentials
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 14 Dec 2015 16:58:42 +0000 (17:58 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 14 Dec 2015 16:58:42 +0000 (17:58 +0100)
app/sandbox/settings.py

index 880a18820434fb8c008033598c8b9d5666de98b0..aa8ba06276766c9f39267e67ea720f18a277a850 100644 (file)
@@ -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.
     }