<commit_before>import os
import socket

from .base import *  # noqa


SERVER_ENV = os.getenv('DJANGO_SERVER_ENV')
SECRET_KEY = os.getenv('SECRET_KEY')
DEBUG = TEMPLATE_DEBUG = False
ALLOWED_HOSTS = [
    # the server's IP (for monitors)
    socket.gethostbyname(socket.gethostname()),
]

if SERVER_ENV == 'prod':
    ALLOWED_HOSTS.extend([
        'webwewant.mozilla.org',
        'glow.cdn.mozilla.net',
        'glow-origin.cdn.mozilla.net',
    ])
    STATIC_URL = 'https://glow.cdn.mozilla.net/static/'
elif SERVER_ENV == 'dev':
    ALLOWED_HOSTS.append('webwewant.allizom.org')

CACHES = {
    # DB 1 is for the site cache
    'default': {
        'BACKEND': 'redis_cache.cache.RedisCache',
        'LOCATION': 'unix:/var/run/redis/redis.sock:1',
        'OPTIONS': {<commit_msg>Bug 1000579: Add current list of 100% translated locales for prod.<commit_after>import os
import socket

from django.utils.translation import ugettext_lazy as _

from .base import *  # noqa


SERVER_ENV = os.getenv('DJANGO_SERVER_ENV')
SECRET_KEY = os.getenv('SECRET_KEY')
DEBUG = TEMPLATE_DEBUG = False
ALLOWED_HOSTS = [
    # the server's IP (for monitors)
    socket.gethostbyname(socket.gethostname()),
]

if SERVER_ENV == 'prod':
    ALLOWED_HOSTS.extend([
        'webwewant.mozilla.org',
        'glow.cdn.mozilla.net',
        'glow-origin.cdn.mozilla.net',
    ])
    STATIC_URL = 'https://glow.cdn.mozilla.net/static/'

    LANGUAGES = (
        ('de', _('German')),
        ('en', _('English')),
        ('es', _('Spanish')),
        ('fr', _('French')),
        ('he', _('Hebrew')),
        ('hu', _('Hungarian')),
        ('it', _('Italian')),
        ('ja', _('Japanese')),
        ('ko', _('Korean')),
        ('nl', _('Dutch')),
        ('pt-br', _('Brazilian Portuguese')),
        ('zh-cn', _('Simplified Chinese')),
        ('zh-tw', _('Traditional Chinese')),
    )
elif SERVER_ENV == 'dev':
    ALLOWED_HOSTS.append('webwewant.allizom.org')

CACHES = {
    # DB 1 is for the site cache
    'default': {
        'BACKEND': 'redis_cache.cache.RedisCache',
        'LOCATION': 'unix:/var/run/redis/redis.sock:1',
        'OPTIONS': {
{'fraction_non_alphanumeric': 0.1756440281030445, 'fraction_numerical': 0.006557377049180328, 'mean_word_length': 2.9555555555555557, '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': '4980646', 'n_tokens_mistral': 827, 'n_tokens_neox': 782, 'n_words': 143}