use network connection instead of unix socket.
@@ -147,7 +147,7 @@ DATABASES = {
'NAME': 'twlight',
'USER': os.environ.get('DJANGO_DB_USER', None),
'PASSWORD': os.environ.get('DJANGO_DB_PASSWORD', None),
- 'HOST': 'localhost',
+ 'HOST': '127.0.0.1',
'PORT': '3306',
# This is critical for handling Unicode data due to stupid properties
# of MySQL; see https://stackoverflow.com/questions/2108824/mysql-incorrect-string-value-error-when-save-unicode-string-in-django .
