# This file is exec'd from settings.py, so it has access to and can
# modify all the variables in settings.py.

# If this file is changed in development, the development server will
# have to be manually restarted because changes will not be noticed
# immediately.
import os
# Disable debugging unless defined otherwise through environment variable.
DEBUG = True if os.getenv('DEBUG') == 'true' else False

WSGI_APPLICATION = 'docker_mezzanine.wsgi.application'

# Secret keys: make these unique, and don't share them with anybody.
# SECRET_KEY = os.environ['SECRET_KEY']
# NEVERCACHE_KEY = os.environ['NEVERCACHE_KEY']

SECRET_KEY = 'g2-l8vr#+tq&-mb=#@+)f!c#&cbj%hosdp--883_9c&_hx%x+5'
NEVERCACHE_KEY = '%h(e0^9-iqts=t@z!)vu@)+=jqiy)7^411$)u_3@%u7#8#$ox9'

# Docker PostgreSQL Database.
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': 'destiny',
        'USER': 'destinyuser',
        'PASSWORD': 'Joomla8',
        'HOST': 'postgres',
        'PORT': '5432'
    }
}

ADMINS = (
    # ('Your Name', 'your_email@domain.com'),
    ('admin', 'admin@mysite.com'),
)
ADMIN_USERNAME = 'daniel'
ADMIN_EMAIL = 'linmukong@iCloud.com'
ADMIN_INITIAL_PASSWORD = 'Joomla8' # To be changed after first login by admin