Created
December 30, 2019 15:53
-
-
Save joaquinacuna/3913c8bc7c637b7ef5818bb5b5c8c5c3 to your computer and use it in GitHub Desktop.
This file contains 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
# settings.py | |
DATABASES = { | |
'default': { | |
'ENGINE': 'django.db.backends.mysql', | |
'OPTIONS': { | |
'read_default_file': '/path/to/my.cnf', | |
}, | |
} | |
} | |
# my.cnf | |
[client] | |
database = NAME | |
user = USER | |
password = PASSWORD | |
default-character-set = utf8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment