Created
April 4, 2019 21:15
-
-
Save alexryabtsev/897a963ec458b2f2bdfc7d79e6b9b43f to your computer and use it in GitHub Desktop.
This file contains 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
import os | |
SITE_ROOT = os.path.dirname(os.path.dirname(os.path.dirname(os.path.realpath(__file__)))) | |
DEBUG = True | |
TEMPLATE_DEBUG = DEBUG | |
DATABASES = { | |
'default': { | |
'ENGINE': 'django.db.backends.postgresql', | |
'NAME': 'production_db', | |
'USER': 'user', | |
'PASSWORD': 'password', | |
'HOST': 'db.example.com', | |
'PORT': '5432', | |
'OPTIONS': { | |
'sslmode': 'require' | |
} | |
} | |
} | |
MEDIA_ROOT = os.path.join(SITE_ROOT, 'assets') | |
MEDIA_URL = 'media/' | |
STATIC_ROOT = os.path.join(SITE_ROOT, 'static') | |
STATIC_URL = 'static/' | |
SECRET_KEY = 'Some-Autogenerated-Secret-Key' | |
CACHES = { | |
'default': { | |
'BACKEND': 'django_redis.cache.RedisCache', | |
'LOCATION': '127.0.0.1:6379/1', | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment