<commit_before>#:coding=utf-8:

# Common settings for deployed servers
# Will be imported by staging.py, production.py, etc.,
# and some settings possibly overridden.
import socket
import os

from .base import *

# TODO: 後で PyConJP 風に設定する

BASE_PATH = os.path.dirname(os.path.dirname(os.path.dirname(__file__)))

DATABASES = {
    "default": {
        "ENGINE": "django.db.backends.postgresql_psycopg2",
        "NAME": os.environ['DB_NAME'],
        "USER": os.environ['DB_USER'],
        "PASSWORD": os.environ['DB_PASSWORD'],
        "HOST": os.environ['DB_HOST'],
        "PORT": os.environ['DB_PORT'],
    }
}

ALLOWED_HOSTS = [
    '.pycon.org',
    '.python.org',
    'staging-pycon.python.org',
    socket.getfqdn(),
]

SECRET_KEY = os.environ['SECRET_KEY']

ADMINS = (
    ('<NAME>', '<EMAIL>'),
    ('Caktus Pycon Team', '<EMAIL>'),<commit_msg>Added USE_X_FORWARDED_HOST<commit_after>#:coding=utf-8:

# Common settings for deployed servers
# Will be imported by staging.py, production.py, etc.,
# and some settings possibly overridden.
import socket
import os

from .base import *

# TODO: 後で PyConJP 風に設定する

BASE_PATH = os.path.dirname(os.path.dirname(os.path.dirname(__file__)))

DATABASES = {
    "default": {
        "ENGINE": "django.db.backends.postgresql_psycopg2",
        "NAME": os.environ['DB_NAME'],
        "USER": os.environ['DB_USER'],
        "PASSWORD": os.environ['DB_PASSWORD'],
        "HOST": os.environ['DB_HOST'],
        "PORT": os.environ['DB_PORT'],
    }
}

ALLOWED_HOSTS = [
    '.pycon.jp',
]
USE_X_FORWARDED_HOST = True

SECRET_KEY = os.environ['SECRET_KEY']

ADMINS = (
    ('<NAME>', '<EMAIL>'),
    ('Caktus Pycon Team', '<EMAIL>'),
{'fraction_non_alphanumeric': 0.1707462686567164, 'fraction_numerical': 0.0023880597014925373, 'mean_word_length': 3.5543478260869565, 'pattern_counts': {'":': 14, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, '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': '4908092', 'n_tokens_mistral': 636, 'n_tokens_neox': 636, 'n_words': 117}