dev-coop/meancoach

View on GitHub
meancoach_project/settings/production.py

Summary

Maintainability
A
0 mins
Test Coverage
import dj_database_url

from base import *


DATABASES = {
    'default': dj_database_url.config()
}

DEBUG = False

ALLOWED_HOSTS = ['.herokuapp.com']

SECRET_KEY = os.environ.get("DJANGO_SECRET_KEY", None)
assert SECRET_KEY, "Set your DJANGO_SECRET_KEY env var"

# Use the cached template loader so template is compiled once and read from
# memory instead of reading from disk on each load.
# TEMPLATES[0]['OPTIONS']['loaders'] = [
#     ('django.template.loaders.cached.Loader', [
#         'django.template.loaders.filesystem.Loader',
#         'django.template.loaders.app_directories.Loader',
#     ]),
# ]