"""Development settings."""

from .base import *  # noqa
from .base import env

# General

DEBUG = True
SECRET_KEY = env(
    "DJANGO_SECRET_KEY",
    default="django-insecure-9k&sx51nu!pv7an58^5)k1tqd5q7-k2kmp15fg1*_k!=0zh78%",
)
ALLOWED_HOSTS = ["localhost", "0.0.0.0", "127.0.0.1"]

# Caches

CACHES = {
    "default": {
        "BACKEND": "django.core.cache.backends.locmem.LocMemCache",
        "LOCATION": "",
    }
}

# Email

EMAIL_BACKEND = env(
    "DJANGO_EMAIL_BACKEND", default="django.core.mail.backends.console.EmailBackend"
)

# WhiteNoise

INSTALLED_APPS = ["whitenoise.runserver_nostatic"] + INSTALLED_APPS  # noqa F405
