... nses. For some functionality, it may be beneficial to run code outside the request-response cycle. That's where background Tasks come in. Background Tasks can offload work to be run outside the request-response cycle, to be run elsewhere, potentially ... r experience. For example, a user shouldn't have to wait for an email to send before their page finishes loading. Django's Tasks framework makes it easy to define and enqueue such work. It does not provide a worker mechanism to run Tasks. The actual e ... d by infrastructure outside Django, such as a separate process or service. Given that, a task backend capable of executing tasks on that service should be evaluated and configured. Background Task fundamentals ¶ When work needs to be done in the backg ... ... nses. For some functionality, it may be beneficial to run code outside the request-response cycle. That's where background Tasks come in. Background Tasks can offload work to be run outside the request-response cycle, to be run elsewhere, potentially ... r experience. For example, a user shouldn't have to wait for an email to send before their page finishes loading. Django's Tasks framework makes it easy to define and enqueue such work. It does not provide a worker mechanism to run Tasks. The actual e ... d by infrastructure outside Django, such as a separate process or service. Given that, a task backend capable of executing tasks on that service should be evaluated and configured. Background Task fundamentals ¶ When work needs to be done in the backg ... ... e @task decorator is added. If the defined Task is not valid according to the backend, InvalidTask is raised. See defining tasks for usage examples. Task ¶ class Task [ソース] ¶ Represents a Task to be run in the background. Tasks should be defined us ... ing the task() decorator. Attributes of Task cannot be modified. See modifying Tasks for details. priority ¶ The priority of the Task . Priorities must be between -100 and 100, where larger numbers are highe ... un sooner. The backend must have supports_priority set to True to use this feature. backend ¶ The alias of the backend the Task should be enqueued to. This must match a backend defined in BACKEND . queue_name ¶ The name of the queue the Task will be e ... ... e @task decorator is added. If the defined Task is not valid according to the backend, InvalidTask is raised. See defining tasks for usage examples. Task ¶ class Task [ソース] ¶ Represents a Task to be run in the background. Tasks should be defined us ... ing the task() decorator. Attributes of Task cannot be modified. See modifying Tasks for details. priority ¶ The priority of the Task . Priorities must be between -100 and 100, where larger numbers are highe ... un sooner. The backend must have supports_priority set to True to use this feature. backend ¶ The alias of the backend the Task should be enqueued to. This must match a backend defined in BACKEND . queue_name ¶ The name of the queue the Task will be e ... ... files. A migration guide is available if you're updating from the django-template-partials third-party package. Background Tasks ¶ Django now includes a built-in Tasks framework for running code outside the HTTP request–response cycle. This enables of ... task definition, validation, queuing, and result handling. Django guarantees consistent behavior for creating and managing tasks, while the responsibility for running them continues to belong to external worker processes. Tasks are defined using the t ... ask() decorator: from django.core.mail import send_mail from django.tasks import task @task def email_users ( emails , subject , message ): return send_mail ( subject , message , None , emails ) O ... ... files. A migration guide is available if you're updating from the django-template-partials third-party package. Background Tasks ¶ Django now includes a built-in Tasks framework for running code outside the HTTP request–response cycle. This enables of ... task definition, validation, queuing, and result handling. Django guarantees consistent behavior for creating and managing tasks, while the responsibility for running them continues to belong to external worker processes. Tasks are defined using the t ... ask() decorator: from django.core.mail import send_mail from django.tasks import task @task def email_users ( emails , subject , message ): return send_mail ( subject , message , None , emails ) O ... ... ty Security middleware. s django.shortcuts Convenience shortcuts that span multiple levels of Django's MVC stack. t django.tasks Django's built-in background Task system. django.tasks.backends.base django.tasks.backends.dummy django.tasks.backends.imm ... ediate django.tasks.exceptions django.template Django's template system django.template.backends django.template.backends.django django.templa ... decorators auth template framework built-in fields Functions files admin signals postgres Middleware contenttypes database tasks クイック検索 Last update: 2026年10月09日 up ... ... ty Security middleware. s django.shortcuts Convenience shortcuts that span multiple levels of Django's MVC stack. t django.tasks Django's built-in background Task system. django.tasks.backends.base django.tasks.backends.dummy django.tasks.backends.imm ... ediate django.tasks.exceptions django.template Django's template system django.template.backends django.template.backends.django django.templa ... ... レポジトリ 大局的な概要 The main branch Stable branches タグ How to release Django オーバービュー Prerequisites Pre-release tasks Feature freeze tasks Actually rolling the release Making the release(s) available to the public Post-release Notes on sett ... のコントリビュート 関連キーワード Django リリース release フォーラム django 組織 セキュリティ 問題 サポート バージョン 通知 tasks internals 自体 ハック ドキュメント 改善 管理 方法 場合 クイック検索 Last update: 2026年10月08日 « previous | up | next » ... ... レポジトリ 大局的な概要 The main branch Stable branches タグ How to release Django オーバービュー Prerequisites Pre-release tasks Feature freeze tasks Actually rolling the release Making the release(s) available to the public Post-release Notes on sett ... 次のトピックへ Django へのコントリビュート 関連キーワード リリース release フォーラム 組織 セキュリティ 問題 サポート 通知 tasks internals 自体 ハック ドキュメント 改善 管理 方法 コントリビュート Communication channels フレームワーク 作業 ways contrib ... 2026年10月08日