Skip to content

Instantly share code, notes, and snippets.

@alexryabtsev
Created April 4, 2019 21:14
Show Gist options
  • Save alexryabtsev/00ba08707672541ac8be227d869241a2 to your computer and use it in GitHub Desktop.
Save alexryabtsev/00ba08707672541ac8be227d869241a2 to your computer and use it in GitHub Desktop.
import os
SECRET_KEY = os.environ['SECRET_KEY']
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': os.environ['DATABASE_NAME'],
'HOST': os.environ['DATABASE_HOST'],
'PORT': int(os.environ['DATABASE_PORT']),
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment