<commit_before>"""
Django settings for municipal_finance project.

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

For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os
BASE_DIR = os.path.dirname(os.path.dirname(__file__))


# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = os.environ.get('DJANGO_DEBUG', 'true') == 'true'

# SECURITY WARNING: keep the secret key used in production secret!
if DEBUG:
    SECRET_KEY = <KEY>'
else:
    SECRET_KEY = os.environ.get('DJANGO_SECRET_KEY')

GOOGLE_ANALYTICS_ID = 'UA-48399585-37'

ALLOWED_HOSTS = ['*']


# Application definition

INSTALLED_APPS = (
    'municipal_finance',
    'scorecard',
    'wazimap_mapit',
    'wazimap.apps.WazimapConfig',
    'census',

    'django.contrib.sites',
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.humanize',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'pipeline',
    'django_extensions',
    'corsheaders',
)

# Sites
if DEBUG:
    SITE_ID = 2  # Scorecard
    # SITE_ID = 3  # API

# Wazimap
from wazimap.settings import WAZIMAP
WAZIMAP['name'] = 'Municipal Money'<commit_msg>Make site id configurable for dev<commit_after>"""
Django settings for municipal_finance project.

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

For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os
BASE_DIR = os.path.dirname(os.path.dirname(__file__))


# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = os.environ.get('DJANGO_DEBUG', 'true') == 'true'

# SECURITY WARNING: keep the secret key used in production secret!
if DEBUG:
    SECRET_KEY = <KEY>'
else:
    SECRET_KEY = os.environ.get('DJANGO_SECRET_KEY')

GOOGLE_ANALYTICS_ID = 'UA-48399585-37'

ALLOWED_HOSTS = ['*']


# Application definition

INSTALLED_APPS = (
    'municipal_finance',
    'scorecard',
    'wazimap_mapit',
    'wazimap.apps.WazimapConfig',
    'census',

    'django.contrib.sites',
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.humanize',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'pipeline',
    'django_extensions',
    'corsheaders',
)

# Sites
# 2: Scorecard
# 3: API

if DEBUG:
    SITE_ID = int(os.environ.get('SITE_ID', '2'))

# Wazimap
from wazimap.settings import WAZIMAP
WAZIMAP['name'] = 'Municipal Money'
{'fraction_non_alphanumeric': 0.13288069835111543, 'fraction_numerical': 0.01196249595861623, 'mean_word_length': 4.0227272727272725, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, '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': '3076656', 'n_tokens_mistral': 1148, 'n_tokens_neox': 1096, 'n_words': 235}