Created
April 23, 2015 13:29
-
-
Save kerin/63120dc9c5908333f4fc to your computer and use it in GitHub Desktop.
django.py.tmpl
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
{{$db := json (getv "/services/postgres")}} | |
DATABASES = { | |
'default': { | |
'ENGINE': 'django.db.backends.postgresql_psycopg2', | |
'NAME': '{{$db.database}}', | |
'USER': '{{$db.username}}', | |
'PASSWORD': '{{$db.password}}', | |
'HOST': '{{$db.ipv4_addr}}', | |
'PORT': '{{$db.port}}', | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment