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,151 @@
  False%0A%0A
+ALLOWED_HOSTS = (%0A    '.unt.edu',%0A    'localhost',%0A)%0A%0ALOG_DIR = %22/var/log/texas-choropleth/%22%0A%0AASSETS_ROOT = get_secret(%22ASSETS_ROOT%22)%0A%0A
 # Media 
@@ -273,24 +273,27 @@
 th.join(
-BASE_DIR
+ASSETS_ROOT
 , 'media
@@ -404,32 +404,35 @@
 s.path.join(
-BASE_DIR
+ASSETS_ROOT
 , 'static_fi
@@ -1125,48 +1125,58 @@
 ')%0A%0A
-EMAIL_USE_SSL = get_secret('EMAIL_USE_TLS'
+DEFAULT_FROM_EMAIL = get_secret(%22DEFAULT_FROM_EMAIL%22
 )%0A

Update production settings.