Created
March 30, 2019 17:53
-
-
Save pranavcode/83366fe1a859f818e3b59a57a06af73b to your computer and use it in GitHub Desktop.
Velotio - HashiCorp Consul Part 2 - Django configuration settings for connecting MongoDB instance on different host using Djongo
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': 'djongo', | |
'NAME': 'db', | |
'HOST': 'mongodb://mongo-primary.service.consul', | |
'PORT': 27017, | |
} | |
} | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment