from .base import *  # isort:skip
from .version import get_current_version


SECRET_KEY = "29%lkw+&n%^w4k#@_db2mo%*tc&xzb)x7xuq*(0$eucii%4r0c"

EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"

AXES_ENABLED = False

CACHES = {
    "default": {
        "BACKEND": "django.core.cache.backends.memcached.MemcachedCache",
        "LOCATION": "memcached:11211",
    },
    "axes": {
        "BACKEND": "django.core.cache.backends.memcached.MemcachedCache",
        "LOCATION": "memcached:11211",
    },
}

# Project settings
VERSION = get_current_version()
ENVIRONMENT = "gitlab"

try:
    # Optionally use sentry integration
    from sentry_sdk import init as sentry_init

    SENTRY_CONFIG.update({"release": VERSION, "environment": ENVIRONMENT})

    sentry_init(**SENTRY_CONFIG)
except ImportError:
    pass
