I hope that's the correct way for setting the mysql host name

This commit is contained in:
Oliver Falk
2018-06-12 12:57:34 +02:00
parent 411e3086f3
commit f3d63adaf0

View File

@@ -100,6 +100,7 @@ if 'MYSQL_DATABASE' in os.environ:
'NAME': os.environ['MYSQL_DATABASE'], 'NAME': os.environ['MYSQL_DATABASE'],
'USER': os.environ['MYSQL_USER'], 'USER': os.environ['MYSQL_USER'],
'PASSWORD': os.environ['MYSQL_PASSWORD'], 'PASSWORD': os.environ['MYSQL_PASSWORD'],
'HOST': 'mysql',
} }
if os.path.isfile(os.path.join(BASE_DIR, 'config_local.py')): if os.path.isfile(os.path.join(BASE_DIR, 'config_local.py')):