# -*- coding: utf-8 -*-
# type: ignore
from __future__ import annotations

from pathlib import Path

from hotpocket_common.constants import App, Environment

BASE_DIR = Path(__file__).resolve().parent.parent.parent

DEBUG = False
ALLOWED_HOSTS = []

ENV = Environment('BUILD', 'build')
APP = App.WEBAPP

INSTALLED_APPS = [
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',

    'crispy_forms',
    'crispy_bootstrap5',
    'django_htmx',
    'social_django',

    'hotpocket_backend.apps.admin.HotPocketAdminConfig',
    'hotpocket_backend.apps.core',

    'hotpocket_backend.apps.accounts',
    'hotpocket_backend.apps.bot',
    'hotpocket_backend.apps.htmx',
    'hotpocket_backend.apps.saves',
    'hotpocket_backend.apps.ui',
]

MIDDLEWARE = [
    'whitenoise.middleware.WhiteNoiseMiddleware',
]

STORAGES = {
    'staticfiles': {
        'BACKEND': 'whitenoise.storage.CompressedManifestStaticFilesStorage',
    },
}

LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC'
USE_I18N = True
USE_TZ = True

STATIC_ROOT = BASE_DIR / 'static'
STATIC_URL = 'static/'
