"""
Django settings for the production environment of Project Moore.

For more information regarding running in production see,
See https://docs.djangoproject.com/en/1.10/howto/deployment/checklist/

For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/

For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
from __future__ import absolute_import, unicode_literals

from .base import *

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = os.environ.get(
    'DJANGO_SECRET',
    'za7^0@54n&p-dg4)_l12q_3^o5awz_uym0osqaz2!myki_8kw0'
)

# Database
# https://docs.djangoproject.com/en/1.10/ref/settings/#databases

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql',
        'NAME': os.environ.get('DJANGO_DB'),
        'USER': os.environ.get('DJANGO_DB_USER'),
        'PASSWORD': os.environ.get('DJANGO_DB_PASS'),
        'HOST': os.environ.get('DJANGO_DB_HOST', '127.0.0.1'),
        'PORT':  os.environ.get('DJANGO_DB_PORT', '5432'),
    }
}

# Base URL to use when referring to full URLs within the Wagtail admin
# backend - e.g. in notification emails. Don't include '/admin' or a
# trailing slash
BASE_URL = 'https://dev.utn.se'

DEFAULT_FROM_EMAIL = 'info@utn.se'

# Admins - will be sent error messages
ADMINS = [('UTN System Administrator', 'admin@utn.se')]

try:
    from .local import *
except ImportError:
    pass

@@ -1174,16 +1174,36 @@
    %7D%0A%7D%0A%0A
+# CONN_MAX_AGE = 0%0A%0A
 # Base U
@@ -1265,16 +1265,16 @@
 l admin%0A
-
 # backen
@@ -1384,16 +1384,62 @@
 tn.se'%0A%0A
+ALLOWED_HOSTS = %5B'.utn.se'%5D%0A%0A# Email settings%0A
 DEFAULT_
@@ -1466,16 +1466,49 @@
 tn.se'%0A%0A
+EMAIL_SUBJECT_PREFIX = '%5BUTN%5D '%0A%0A
 # Admins
@@ -1538,16 +1538,16 @@
 essages%0A
-
 ADMINS =
@@ -1595,16 +1595,124 @@
 .se')%5D%0A%0A
+LOGGING_CONFIG = None%0A%0A# TODO: HTTPS security%0A# CSRF_COOKIE_SECURE = True%0A#%0A# SESSION_COOKIE_SECURE = True%0A%0A
 try:%0A   

Add settings for production use in environment