* feat: move to postgresql * fix: repair fractional replace statement * fix: use pathlib to manipulate settings_local Co-authored-by: Jennifer Richards <jennifer@painless-security.com> * fix: do two string replacements, not one followed by another that throws away the first. Co-authored-by: Jennifer Richards <jennifer@painless-security.com> * fix: use pathlib again to manipulate settings_local Co-authored-by: Jennifer Richards <jennifer@painless-security.com> * fix: properly use assert (1/2) Co-authored-by: Jennifer Richards <jennifer@painless-security.com> * fix: properly use assert (2/2) Co-authored-by: Jennifer Richards <jennifer@painless-security.com> Co-authored-by: Jennifer Richards <jennifer@painless-security.com>
19 lines
453 B
Python
19 lines
453 B
Python
DATABASES = {
|
|
'default': {
|
|
'HOST': 'db',
|
|
'PORT': 3306,
|
|
'NAME': 'ietf_utf8',
|
|
'ENGINE': 'django.db.backends.mysql',
|
|
'USER': 'django',
|
|
'PASSWORD': 'RkTkDPFnKpko',
|
|
'OPTIONS': {
|
|
'sql_mode': 'STRICT_TRANS_TABLES',
|
|
'init_command': 'SET storage_engine=InnoDB; SET names "utf8"',
|
|
},
|
|
},
|
|
}
|
|
|
|
DATABASE_TEST_OPTIONS = {
|
|
'init_command': 'SET storage_engine=InnoDB',
|
|
}
|