Skip to content

Instantly share code, notes, and snippets.

@kooba
Created June 17, 2015 07:34
Show Gist options
  • Save kooba/99a5ab945d79c1204973 to your computer and use it in GitHub Desktop.
Save kooba/99a5ab945d79c1204973 to your computer and use it in GitHub Desktop.
# (...)
SECRET_KEY = os.environ['SECRET_KEY']
# (...)
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': os.environ['DB_NAME'],
'USER': os.environ['DB_USER'],
'PASSWORD': os.environ['DB_PASS'],
'HOST': os.environ['DB_SERVICE'],
'PORT': os.environ['DB_PORT']
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment