Skip to content

Instantly share code, notes, and snippets.

@alexryabtsev
Created April 4, 2019 21: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 alexryabtsev/b3660bf6112215f9bb93e0f8c0ce0826 to your computer and use it in GitHub Desktop.
Save alexryabtsev/b3660bf6112215f9bb93e0f8c0ce0826 to your computer and use it in GitHub Desktop.
ALLOWED_HOSTS = ['example.com']
DEBUG = False
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'production_db',
'USER': 'user',
'PASSWORD': 'password',
'HOST': 'db.example.com',
'PORT': '5432',
'OPTIONS': {
'sslmode': 'require'
}
}
}
...
from .settings_local import *
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment