This commit is contained in:
Joakim Hellsén 2026-04-27 20:43:26 +02:00
commit a7a5b5c8ea
Signed by: Joakim Hellsén
SSH key fingerprint: SHA256:/9h/CsExpFp+PRhsfA0xznFx2CGfTT5R/kpuFfUgEQk
43 changed files with 5531 additions and 9 deletions

View file

@ -70,6 +70,7 @@ if DEBUG:
INSTALLED_APPS: list[str] = [
"config.apps.TussilagoConfig",
"control_plane.apps.ControlPlaneConfig",
"django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes",
@ -122,6 +123,24 @@ DATABASES: dict[str, dict[str, str | Path | dict[str, str | int]]] = {
},
}
DISABLE_SERVER_SIDE_CURSORS: bool = True
CELERY_BROKER_URL: str = os.getenv(
"TUSSILAGO_CELERY_BROKER_URL",
"memory://" if DEBUG or TESTING else "",
)
CELERY_RESULT_BACKEND: str = os.getenv(
"TUSSILAGO_CELERY_RESULT_BACKEND",
"cache+memory://" if DEBUG or TESTING else "",
)
CELERY_ACCEPT_CONTENT: list[str] = ["json"]
CELERY_TASK_SERIALIZER: str = "json"
CELERY_RESULT_SERIALIZER: str = "json"
CELERY_TIMEZONE: str = TIME_ZONE
CELERY_TASK_ALWAYS_EAGER: bool = TESTING
CELERY_TASK_EAGER_PROPAGATES: bool = TESTING
CELERY_TASK_DEFAULT_QUEUE: str = "control-plane"
AUTH_PASSWORD_VALIDATORS: list[dict[str, str]] = [
{
"NAME": "django.contrib.auth.password_validation.UserAttributeSimilarityValidator",
@ -186,5 +205,9 @@ if DEBUG or TESTING:
"django_browser_reload",
))
from config.dev_autoreload import install_watchfiles_reloader_patch
install_watchfiles_reloader_patch(project_root=BASE_DIR)
# Customize the config to support htmx boosting.
DEBUG_TOOLBAR_CONFIG: dict[str, str] = {"ROOT_TAG_EXTRA_ATTRS": "hx-preserve"}