WIP
This commit is contained in:
parent
e70a0584c9
commit
a7a5b5c8ea
43 changed files with 5531 additions and 9 deletions
|
|
@ -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"}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue