from .base import *

DEBUG = False
ALLOWED_HOSTS = ['openstax.org']

# Use the cached template loader
TEMPLATE_LOADERS = (
    ('django.template.loaders.cached.Loader', (
        'django.template.loaders.filesystem.Loader',
        'django.template.loaders.app_directories.Loader',
    )),
)

# Cloudfront static file settings
DEFAULT_FILE_STORAGE = 'storages.S3Storage.S3Storage'
AWS_STORAGE_BUCKET_NAME = 'openstax-assets'
AWS_STORAGE_DIR = 'oscms-prodcms'
AWS_S3_CUSTOM_DOMAIN = 'd3bxy9euw4e147.cloudfront.net'
# S3 static file storage using custom backend
STATICFILES_LOCATION = '{}/static'.format(AWS_STORAGE_DIR)
STATICFILES_STORAGE = 'openstax.custom_storages.StaticStorage'
STATIC_URL = "https://%s/%s/static/" % (AWS_S3_CUSTOM_DOMAIN, AWS_STORAGE_DIR)
# S3 media storage using custom backend
MEDIAFILES_LOCATION = '{}/media'.format(AWS_STORAGE_DIR)
MEDIA_URL = "https://%s/%s/media/" % (AWS_S3_CUSTOM_DOMAIN, AWS_STORAGE_DIR)
DEFAULT_FILE_STORAGE = 'openstax.custom_storages.MediaStorage'

# Amazon SES Mail Settings
DEFAULT_FROM_EMAIL = 'noreply@openstax.org'
SERVER_EMAIL = 'noreply@openstax.org'
EMAIL_BACKEND = 'django_ses.SESBackend'
AWS_SES_REGION_NAME = 'us-west-2'
AWS_SES_REGION_ENDPOINT = 'email.us-west-2.amazonaws.com'

try:
    from .local import *
except ImportError:
    pass

@@ -46,16 +46,17 @@
 STS = %5B'
+.
 openstax
@@ -67,232 +67,8 @@
 '%5D%0A%0A
-# Use the cached template loader%0ATEMPLATE_LOADERS = (%0A    ('django.template.loaders.cached.Loader', (%0A        'django.template.loaders.filesystem.Loader',%0A        'django.template.loaders.app_directories.Loader',%0A    )),%0A)%0A%0A
 # Cl

update prod settings to use wildcard and no cache template loaders