54 lines
1.1 KiB
Python
54 lines
1.1 KiB
Python
# -*- coding: utf-8 -*-
|
|
# type: ignore
|
|
from __future__ import annotations
|
|
|
|
from pathlib import Path
|
|
|
|
BASE_DIR = Path(__file__).resolve().parent.parent.parent
|
|
|
|
DEBUG = False
|
|
ALLOWED_HOSTS = []
|
|
|
|
ENV = 'build'
|
|
APP = 'backend'
|
|
|
|
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/'
|