Created
April 17, 2020 20:17
-
-
Save tacianosilva/19b3cecb44356eb23d473edf604abee3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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