<commit_before>#encoding:utf-8
"""
Django settings for termometro project.

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

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

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

BASE_DIR        = os.path.dirname(os.path.abspath(__file__))
SITE_ROOT       = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

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

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '<KEY>'

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

TEMPLATE_DEBUG = True

ALLOWED_HOSTS = []
SITE_ID = 1

# Application definition

INSTALLED_APPS = (
    'django_admin_bootstrapped.bootstrap3',
    'django_admin_bootstrapped',
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'bootstrapform',
    'registrarse',
    'preguntar',
    'comentario',
    'social.apps.django_app.default',
    'django.contrib.sites',
    'login',
)

MIDDLEWARE_CLASSES = (
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
)

ROOT_URLCONF = 'termometro.urls'

WSGI_APPLICATION = 'termometro.wsgi.application'


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

DATABASES = {
    'default': {
        'ENGINE'    : 'django.db.backends.sqlite3',
        'NAME'      : 'database-SQLi.db',
        'USER'      : '',
        'PASSWORD'  : '',
        'HOST'      : '',
        'PORT'      : '',
    }
}

# DATABASES = {
#     'default': {
#         'ENGINE'    : 'django.db.backends.postgresql_psycopg2',
#         'NAME'      : 'd7mtcl7epem3m',
#         'USER'      : 'cgoajpyealkokc',
#         'PASSWORD'  : '<PASSWORD>',
#         'HOST'      : 'ec2-54-83-14-68.compute-1.amazonaws.com',
#         'PORT'      : '5432',
#     }
# }
# Internationalization
# https://docs.djangoproject.com/en/1.6/topics/i18n/

LANGUAGE_CODE = 'es-cl'

TIME_ZONE = 'America/Santiago'

USE_I18N = True

USE_L10N = True

USE_TZ = True


# List of callables that know how to import templates from various sources.
TEMPLATE_LOADERS = (
    'django.template.loaders.filesystem.Loader',
    'django.template.loaders.app_directories.Loader',
# 'django.template.loaders.eggs.Loader',
)

# List of finder classes that know how to find static files in
# various locations.
STATICFILES_FINDERS = (
    'django.contrib.staticfiles.finders.FileSystemFinder',
    'django.contrib.staticfiles.finders.AppDirectoriesFinder',
    'django.contrib.staticfiles.finders.DefaultStorageFinder',
 )

STATICFILES_DIRS = (
    os.path.join(SITE_ROOT,'static_root','static'),
)


TEMPLATE_DIRS = (
    os.path.join(SITE_ROOT,'templates'),
)


# Parse database configuration from $DATABASE_URL
#DATABASES['default'] =  dj_database_url.config(default=os.environ['DATABASE_URL'])

# Honor the 'X-Forwarded-Proto' header for request.is_secure()
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')

# Allow all host headers
ALLOWED_HOSTS = ['*']


MEDIA_ROOT = os.path.normpath(os.path.join(SITE_ROOT,'media'))
MEDIA_URL = '/media/'

STATIC_URL = '/static/'

#STATICFILES_DIRS = (
#    os.path.join(SITE_ROOT, 'static'),<commit_msg>Modificado settings.py para usar distintas bases de datos dependiendo del ambiente<commit_after>#encoding:utf-8
"""
Django settings for termometro project.

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

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

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

BASE_DIR        = os.path.dirname(os.path.abspath(__file__))
SITE_ROOT       = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

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

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'n%k_1#-q7o97j&4$2e*3+*3u=obs62e!v4776igmv7ycb+p(mg'

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

TEMPLATE_DEBUG = True

ALLOWED_HOSTS = []
SITE_ID = 1

# Application definition

INSTALLED_APPS = (
    'django_admin_bootstrapped.bootstrap3',
    'django_admin_bootstrapped',
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'bootstrapform',
    'registrarse',
    'preguntar',
    'comentario',
    'social.apps.django_app.default',
    'django.contrib.sites',
    'login',
)

MIDDLEWARE_CLASSES = (
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
)

ROOT_URLCONF = 'termometro.urls'

WSGI_APPLICATION = 'termometro.wsgi.application'


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

# DATABASES = {
#     'default': {
#         'ENGINE'    : 'django.db.backends.sqlite3',
#         'NAME'      : 'database-SQLi.db',
#         'USER'      : '',
#         'PASSWORD'  : '',
#         'HOST'      : '',
#         'PORT'      : '',
#     }
# }

# DATABASES = {
#     'default': {
#         'ENGINE'    : 'django.db.backends.postgresql_psycopg2',
#         'NAME'      : 'd7mtcl7epem3m',
#         'USER'      : 'cgoajpyealkokc',
#         'PASSWORD'  : '<PASSWORD>0WK',
#         'HOST'      : 'ec2-54-83-14-68.compute-1.amazonaws.com',
#         'PORT'      : '5432',
#     }
# }

# Parse database configuration from $DATABASE_URL
DATABASES= {}
DATABASES['default'] =  dj_database_url.config(default=os.environ['DATABASE_URL'])

# Internationalization
# https://docs.djangoproject.com/en/1.6/topics/i18n/

LANGUAGE_CODE = 'es-cl'

TIME_ZONE = 'America/Santiago'

USE_I18N = True

USE_L10N = True

USE_TZ = True


# List of callables that know how to import templates from various sources.
TEMPLATE_LOADERS = (
    'django.template.loaders.filesystem.Loader',
    'django.template.loaders.app_directories.Loader',
# 'django.template.loaders.eggs.Loader',
)

# List of finder classes that know how to find static files in
# various locations.
STATICFILES_FINDERS = (
    'django.contrib.staticfiles.finders.FileSystemFinder',
    'django.contrib.staticfiles.finders.AppDirectoriesFinder',
    'django.contrib.staticfiles.finders.DefaultStorageFinder',
 )

STATICFILES_DIRS = (
    os.path.join(SITE_ROOT,'static_root','static'),
)


TEMPLATE_DIRS = (
    os.path.join(SITE_ROOT,'templates'),
)

# Honor the 'X-Forwarded-Proto' header for request.is_secure()
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')

# Allow all host headers
ALLOWED_HOSTS = ['*']


MEDIA_ROOT = os.path.normpath(os.path.join(SITE_ROOT,'media'))
MEDIA_URL = '/media/'

STATIC_URL = '/static/'

#STATICFILES_DIRS = (
#    os.path.join(SITE_ROOT, 'static'),
{'fraction_non_alphanumeric': 0.13883170355120947, 'fraction_numerical': 0.011837364899639732, 'mean_word_length': 3.702359346642468, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 10, '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': '1513955', 'n_tokens_mistral': 2831, 'n_tokens_neox': 2758, 'n_words': 436}