Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created June 17, 2020 05:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save velotiotech/4b69cde165e1ed8e235a67d026fbaeec to your computer and use it in GitHub Desktop.
Save velotiotech/4b69cde165e1ed8e235a67d026fbaeec 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
...
DATABASES = {
'default': {
'ENGINE': 'djongo',
'NAME': 'db',
'HOST': 'mongodb://mongo-primary.service.consul',
'PORT': 27017,
}
}
...
@velotiotech
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment