import sys

from .base import *

DEBUG = False

# Update database configuration with $DATABASE_URL.
import dj_database_url
db_from_env = dj_database_url.config()
DATABASES['default'].update(db_from_env)

SECRET_KEY = os.environ.get('SECRET_KEY')

# AWS S3 settings
DEFAULT_FILE_STORAGE = 'storages.backends.s3boto.S3BotoStorage'
AWS_ACCESS_KEY_ID = os.environ.get('AWS_ACCESS_KEY_ID')
AWS_SECRET_ACCESS_KEY = os.environ.get('AWS_SECRET_ACCESS_KEY')
AWS_STORAGE_BUCKET_NAME = os.environ.get('AWS_STORAGE_BUCKET_NAME')
AWS_S3_CUSTOM_DOMAIN = '%s.s3.amazonaws.com' % AWS_STORAGE_BUCKET_NAME
# Necessary to overcome broken pipe error if not default US location
# (https://github.com/boto/boto/issues/621).
if os.environ.get('AWS_S3_HOST', False):
    AWS_S3_HOST = os.environ.get('AWS_S3_HOST')
MEDIA_URL = "https://%s/" % (AWS_S3_CUSTOM_DOMAIN)

ALLOWED_HOSTS = [
    'localhost',
    'rtei.herokuapp.com'
]

RTEI_CONTACT_FORM_EMAIL = os.environ.get('RTEI_CONTACT_FORM_EMAIL')

LOGGING = {
    'version': 1,
    'handlers': {
        'console': {
            'level': 'INFO',
            'class': 'logging.StreamHandler',
            'stream': sys.stdout
        },

    }
}

try:
    from .local import *
except ImportError:
    pass

@@ -998,16 +998,55 @@
 on': 1,%0A
+    'disable_existing_loggers': False,%0A
     'han
@@ -1051,24 +1051,24 @@
 andlers': %7B%0A
-
         'con
@@ -1199,14 +1199,292 @@
  %7D,%0A
-%0A
     %7D
+,%0A    'loggers': %7B%0A        'django': %7B%0A            'handlers': %5B'console'%5D,%0A            'level': os.getenv('DJANGO_LOG_LEVEL', 'INFO'),%0A        %7D,%0A        'rtei': %7B%0A            'handlers': %5B'console'%5D,%0A            'level': os.getenv('DJANGO_LOG_LEVEL', 'INFO'),%0A        %7D,%0A    %7D,
 %0A%7D%0A%0A

Add more logging config