<commit_before># coding=utf-8

from .base import *
from datetime import timedelta

DEBUG = os.environ.get('BETA', False)

STATIC_ROOT = os.environ['STATIC_ROOT']


# Let this be done by frontend reverse proxy, if required!
PREPEND_WWW = False

ADMINS = (
    ('VP Admin', os.environ.get('ADMIN_EMAIL')),
)

DATABASES = {
    'default': {
        'ENGINE': os.environ.get('DATABASE_ENGINE', 'django.db.backends.mysql'),
        'HOST': os.environ.get('DATABASE_HOST', 'localhost'),
        'NAME': os.environ.get('DATABASE_NAME'),
        'PASSWORD': os.environ.get('DATABASE_PW'),
        'USER': os.environ.get('DATABASE_USER')
    }
}

ALLOWED_HOSTS = os.environ.get('ALLOWED_HOSTS', 'volunteer-planner.org,www.volunteer-planner.org').split(sep=',') + ['localhost']
SECRET_KEY = os.environ['SECRET_KEY']
EMAIL_BACKEND = os.environ.get('EMAIL_BACKEND', 'django.core.mail.backends.smtp.EmailBackend')
COMMUNICATION_SENDER_MAIL = os.environ.get('SENDER_EMAIL')
DEFAULT_FROM_EMAIL = os.environ.get('FROM_EMAIL')
CONTACT_MAIL = [os.environ.get('CONTACT_EMAIL')]
SERVER_EMAIL = os.environ.get('SERVER_EMAIL')
EMAIL_HOST = os.environ.get('SMTP_HOST', 'localhost')
EMAIL_PORT = int(os.environ.get('SMTP_PORT', 25))
EMAIL_USER = os.environ.get('SMTP_USER')
EMAIL_PASS = os.environ.get('SMTP_PASS')
EMAIL_USE_TLS = False

CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
        'LOCATION': '127.0.0.1:11211',
    }<commit_msg>Secure Cookie (HTTPS) and expire after 4 weeks<commit_after># coding=utf-8

from .base import *
from datetime import timedelta

DEBUG = os.environ.get('BETA', False)

STATIC_ROOT = os.environ['STATIC_ROOT']


# Let this be done by frontend reverse proxy, if required!
PREPEND_WWW = False

ADMINS = (
    ('VP Admin', os.environ.get('ADMIN_EMAIL')),
)

DATABASES = {
    'default': {
        'ENGINE': os.environ.get('DATABASE_ENGINE', 'django.db.backends.mysql'),
        'HOST': os.environ.get('DATABASE_HOST', 'localhost'),
        'NAME': os.environ.get('DATABASE_NAME'),
        'PASSWORD': os.environ.get('DATABASE_PW'),
        'USER': os.environ.get('DATABASE_USER')
    }
}

ALLOWED_HOSTS = os.environ.get('ALLOWED_HOSTS', 'volunteer-planner.org,www.volunteer-planner.org').split(sep=',') + ['localhost']
SECRET_KEY = os.environ['SECRET_KEY']
EMAIL_BACKEND = os.environ.get('EMAIL_BACKEND', 'django.core.mail.backends.smtp.EmailBackend')
COMMUNICATION_SENDER_MAIL = os.environ.get('SENDER_EMAIL')
DEFAULT_FROM_EMAIL = os.environ.get('FROM_EMAIL')
CONTACT_MAIL = [os.environ.get('CONTACT_EMAIL')]
SERVER_EMAIL = os.environ.get('SERVER_EMAIL')
EMAIL_HOST = os.environ.get('SMTP_HOST', 'localhost')
EMAIL_PORT = int(os.environ.get('SMTP_PORT', 25))
EMAIL_USER = os.environ.get('SMTP_USER')
EMAIL_PASS = <PASSWORD>('SMTP_PASS')
EMAIL_USE_TLS = False

SESSION_COOKI_AGE = 28 * 24 * 3600
SESSION_COOKIE_SECURE = True

CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
        'LOCATION': '127.0.0.1:11211',
    }
{'fraction_non_alphanumeric': 0.16589861751152074, 'fraction_numerical': 0.012179065174456879, 'mean_word_length': 4.810707456978967, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 2, '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': '2259910', 'n_tokens_mistral': 1190, 'n_tokens_neox': 1199, 'n_words': 171}