<commit_before>from .base import *

DEBUG = False

ALLOWED_HOSTS = ['localhost', 'conceptcoaster.com']

SECRET_KEY = os.environ['DJANGO_SECRET_KEY']

# Database
# https://docs.djangoproject.com/en/1.8/ref/settings/#databases
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': 'django',
        'USER': os.environ['POSTGRES_USER'],
        'PASSWORD': os.environ['POSTGRES_PASSWORD'],
        'HOST': 'localhost',
        'PORT': os.environ['POSTGRES_PORT']
    }
}

CONN_MAX_AGE = 60


STATIC_ROOT = "/home/pramod/feel-client/static-root"

INSTALLED_APPS += (
    'opbeat.contrib.django',
)

OPBEAT = {
    'ORGANIZATION_ID': os.environ['OPBEAT_ORGANIZATION_ID'],
    'APP_ID': os.environ['OPBEAT_APP_ID'],
    'SECRET_TOKEN': ['OPBEAT_SECRET_TOKEN'],
}

MIDDLEWARE_CLASSES = (
    'opbeat.contrib.django.middleware.OpbeatAPMMiddleware',
) + MIDDLEWARE_CLASSES
<commit_msg>Django Settings: Prettify settings in prod.py<commit_after>from .base import *

DEBUG = False

ALLOWED_HOSTS = ['localhost', 'conceptcoaster.com']

SECRET_KEY = os.environ['DJANGO_SECRET_KEY']

##############################################################################

# https://docs.djangoproject.com/en/1.8/ref/settings/#databases
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': 'django',
        'USER': os.environ['POSTGRES_USER'],
        'PASSWORD': os.environ['POSTGRES_PASSWORD'],
        'HOST': 'localhost',
        'PORT': os.environ['POSTGRES_PORT']
    }
}

###############################################################################

STATIC_ROOT = "/home/pramod/feel-client/static-root"

###############################################################################

# DB Connections 
CONN_MAX_AGE = 60

###############################################################################

# OPBEAT 

INSTALLED_APPS += (
    'opbeat.contrib.django',
)

OPBEAT = {
    'ORGANIZATION_ID': os.environ['OPBEAT_ORGANIZATION_ID'],
    'APP_ID': os.environ['OPBEAT_APP_ID'],
    'SECRET_TOKEN': ['OPBEAT_SECRET_TOKEN'],
}

MIDDLEWARE_CLASSES = (
    'opbeat.contrib.django.middleware.OpbeatAPMMiddleware',
) + MIDDLEWARE_CLASSES

{'fraction_non_alphanumeric': 0.27623318385650225, 'fraction_numerical': 0.004484304932735426, 'mean_word_length': 4.75, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4427423', 'n_tokens_mistral': 811, 'n_tokens_neox': 785, 'n_words': 91}