diff --git a/django/webshop/webshop/settings.py b/django/webshop/webshop/settings.py index 8920fe6..ca96162 100644 --- a/django/webshop/webshop/settings.py +++ b/django/webshop/webshop/settings.py @@ -81,6 +81,9 @@ DATABASES = { 'PASSWORD': '2YKtY53F3HDDzPyExAaSh3jdVNh6VN', 'HOST': '127.0.0.1', 'PORT': '3306', + 'OPTIONS': { + 'init_command': "SET sql_mode='STRICT_TRANS_TABLES'" + } } }