From a2eb6ee8969b7d19cda249b3be41290353e0bbc1 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Tue, 24 Sep 2019 19:23:57 +0200 Subject: [PATCH] added char set to database settings --- rowsandall_app/settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rowsandall_app/settings.py b/rowsandall_app/settings.py index 02616365..33831eb8 100644 --- a/rowsandall_app/settings.py +++ b/rowsandall_app/settings.py @@ -157,7 +157,8 @@ DATABASES = { 'HOST': CFG['db_host'], 'PORT': CFG['db_port'], 'OPTIONS': { - 'init_command': "SET sql_mode='STRICT_TRANS_TABLES'" + 'init_command': "SET sql_mode='STRICT_TRANS_TABLES'", + 'charset': 'utf8mb4', } }, 'slave': {