feat(settings): Update task backend to use django-tasks-db and add QUEUES configuration

This commit is contained in:
Ross
2026-05-17 14:00:04 +01:00
parent e6a20bb851
commit bbf7542451
3 changed files with 5 additions and 1 deletions
+3 -1
View File
@@ -87,6 +87,7 @@ INSTALLED_APPS = [
'django_svelte_jsoneditor',
'django_psutil_dash',
'django_tasks',
'django_tasks_db',
]
MIDDLEWARE = [
@@ -387,8 +388,9 @@ TASKS = {
"default": {
"BACKEND": os.environ.get(
"DJANGO_TASK_BACKEND",
"django_tasks.backends.immediate.ImmediateBackend",
"django_tasks_db.DatabaseBackend",
),
"QUEUES": ["default"],
}
}
+1
View File
@@ -28,5 +28,6 @@ CACHES["default"] = {
TASKS = {
"default": {
"BACKEND": "django_tasks.backends.immediate.ImmediateBackend",
"QUEUES": ["default"],
}
}
+1
View File
@@ -1,6 +1,7 @@
#Django==3.2.13
Django==6.0.1
django-tasks
django-tasks-db
django_debug_toolbar
django_jquery
django_reversion