Skip to content

Instantly share code, notes, and snippets.

@gagansh7171
Last active August 23, 2020 18:46
Embed
What would you like to do?
Settings Database
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'bug',
'USER': config('DB_USER'),
'PASSWORD': config('DBPASS'),
'HOST': 'db', # You are supposed to use service name not localhost
'PORT': '3306',
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment