Skip to content

Instantly share code, notes, and snippets.

@tacianosilva
Created April 17, 2020 20:17
Show Gist options
  • Save tacianosilva/19b3cecb44356eb23d473edf604abee3 to your computer and use it in GitHub Desktop.
Save tacianosilva/19b3cecb44356eb23d473edf604abee3 to your computer and use it in GitHub Desktop.
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'scdb_dev',
'USER': 'sc_user',
'PASSWORD': 'sc_user',
'HOST': '127.0.0.1',
'PORT': '3306',
# optional:
'OPTIONS': {
'charset': 'utf8',
'use_unicode': True,
'init_command': 'SET '
'storage_engine=INNODB,'
'character_set_connection=utf8,'
'collation_connection=utf8_bin,'
'sql_mode=NO_ENGINE_SUBSTITUTION' # see note below
# 'SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED',
},
'TEST': {
'NAME': 'scdb_test',
'USER': 'sc_user',
'PASSWORD': 'sc_user',
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment