Skip to content

Instantly share code, notes, and snippets.

@gagansh7171
Last active August 23, 2020 18:46
Show Gist options
  • Save gagansh7171/a0cf75e5c3db8ba6a4f5b8ed0a074940 to your computer and use it in GitHub Desktop.
Save gagansh7171/a0cf75e5c3db8ba6a4f5b8ed0a074940 to your computer and use it in GitHub Desktop.
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