from .base import *
from .pipeline import *


# Debug Settings
DEBUG = False

TEMPLATE_DEBUG = False

# Media Settings
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')

# Staticfile Setttings
STATICFILES_DIRS = (
    os.path.join(BASE_DIR, 'static'),
)

STATIC_ROOT = os.path.join(BASE_DIR, 'static_final')

# TMP Dir for Choropleth Screenshots
IMAGE_EXPORT_TMP_DIR = os.path.join('/', 'tmp')

# Enable Pipeline
PIPELINE_ENABLED = True

# Database Settings
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': get_secret('DB_NAME'),
        'USER': get_secret('DB_USER'),
        'PASSWORD': get_secret('DB_PASSWORD'),
        'HOST': get_secret('DB_HOST'),
        'PORT': get_secret('DB_PORT')
    }
}

# Email Settings
EMAIL_HOST = get_secret('EMAIL_HOST')

EMAIL_PORT = get_secret('EMAIL_PORT')

EMAIL_HOST_USER = get_secret('EMAIL_HOST_USER')

EMAIL_HOST_PASSWORD = get_secret('EMAIL_HOST_PASSWORD')

EMAIL_USE_TLS = get_secret('EMAIL_USE_TLS')

EMAIL_USE_SSL = get_secret('EMAIL_USE_TLS')

@@ -95,16 +95,142 @@
  False%0A%0A
+ALLOWED_HOSTS = get_secret(%22ALLOWED_HOSTS%22)%0A%0ALOG_DIR = %22/var/log/texas-choropleth/%22%0A%0AASSETS_ROOT = get_secret(%22ASSETS_ROOT%22)%0A%0A
 # Media 
@@ -264,24 +264,27 @@
 th.join(
-BASE_DIR
+ASSETS_ROOT
 , 'media
@@ -395,32 +395,35 @@
 s.path.join(
-BASE_DIR
+ASSETS_ROOT
 , 'static_fi
@@ -1116,48 +1116,58 @@
 ')%0A%0A
-EMAIL_USE_SSL = get_secret('EMAIL_USE_TLS'
+DEFAULT_FROM_EMAIL = get_secret(%22DEFAULT_FROM_EMAIL%22
 )%0A

Update production settings.