Commit c2d1f0e5 authored by Lukas Burgey's avatar Lukas Burgey
Browse files

Fix db settings

parent 02d94148
...@@ -94,7 +94,13 @@ DATABASES = { ...@@ -94,7 +94,13 @@ DATABASES = {
'HOST': 'mysql2g.scc.kit.edu', 'HOST': 'mysql2g.scc.kit.edu',
'PASSWORD': os.environ['DB_PASSWORD'], 'PASSWORD': os.environ['DB_PASSWORD'],
'OPTIONS': { 'OPTIONS': {
'init_command': 'SET innodb_strict_mode=1', 'init_command': "SET innodb_strict_mode=1; SET sql_mode='STRICT_TRANS_TABLES'",
'charset': 'utf8mb4',
},
'TEST': {
'NAME': 'scc-hdfmysql0001_portal_test',
'CHARSET': 'utf8mb4',
'COLLATION': 'utf8mb4_unicode_ci',
} }
} }
} }
...@@ -204,9 +210,3 @@ LOGGING = { ...@@ -204,9 +210,3 @@ LOGGING = {
}, },
}, },
} }
# Silence some warning concerning database collation format
SILENCED_SYSTEM_CHECKS = [
'django_mysql.W003',
]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment