... kground worker in your tests. ダミーバックエンド ¶ The DummyBackend doesn't execute enqueued Tasks at all, instead storing results for later use. Task results will forever remain in the READY state. This backend is not intended for use in production - i ... tasks.backends.dummy.DummyBackend" : TASKS = { "default" : { "BACKEND" : "django.tasks.backends.dummy.DummyBackend" }} The results for enqueued Tasks can be retrieved from the backend's results attribute: >>> from django.tasks import default_task_backen ... d >>> my_task . enqueue () >>> len ( default_task_backend . results ) 1 Stored results can be cleared using the clear() method: >>> default_task_backend . clear () >>> len ( default_task_bac ... ... kground worker in your tests. ダミーバックエンド ¶ The DummyBackend doesn't execute enqueued Tasks at all, instead storing results for later use. Task results will forever remain in the READY state. This backend is not intended for use in production - i ... tasks.backends.dummy.DummyBackend" : TASKS = { "default" : { "BACKEND" : "django.tasks.backends.dummy.DummyBackend" }} The results for enqueued Tasks can be retrieved from the backend's results attribute: >>> from django.tasks import default_task_backen ... d >>> my_task . enqueue () >>> len ( default_task_backend . results ) 1 Stored results can be cleared using the clear() method: >>> default_task_backend . clear () >>> len ( default_task_bac ... ... his prevents data from being posted twice if a # user hits the Back button. return HttpResponseRedirect ( reverse ( "polls:results" , args = ( question . id ,))) このコードには、これまでのチュートリアルで扱っていなかったことがいくつか入っています: reque ... チュートリアルその 3 で設定した URLconf を使っているので、 reverse() を呼ぶと、次のような文字列が返ってきます。 "/polls/3/results/" この 3 は question.id の値です。 リダイレクト先の URL は 'results' ビューを呼び出し、最終的なページを表示します。 チュー ... イレクトします。このビューを書いてみましょう。 polls/views.py ¶ from django.shortcuts import get_object_or_404 , render def results ( request , question_id ): question = get_object_or_404 ( Question , pk = question_id ) return render ( request , "polls/r ... ... his prevents data from being posted twice if a # user hits the Back button. return HttpResponseRedirect ( reverse ( "polls:results" , args = ( question . id ,))) このコードには、これまでのチュートリアルで扱っていなかったことがいくつか入っています: reque ... チュートリアルその 3 で設定した URLconf を使っているので、 reverse() を呼ぶと、次のような文字列が返ってきます。 "/polls/3/results/" この 3 は question.id の値です。 リダイレクト先の URL は 'results' ビューを呼び出し、最終的なページを表示します。 チュー ... イレクトします。このビューを書いてみましょう。 polls/views.py ¶ from django.shortcuts import get_object_or_404 , render def results ( request , question_id ): question = get_object_or_404 ( Question , pk = question_id ) return render ( request , "polls/r ... ... lt currently being run. attempt [ソース] ¶ The number of the current execution attempts for this Task, starting at 1. Task results ¶ class TaskResultStatus [ソース] ¶ An Enum representing the status of a TaskResult . READY ¶ The Task has just been enque ... on, or was unable to start. SUCCESSFUL ¶ The Task has finished executing successfully. class TaskResult [ソース] ¶ The TaskResult stores the information about a specific execution of a Task . Attributes of TaskResult cannot be modified. task ¶ The Task ... rmat of the id will depend on the backend being used. Task result ids are always strings less than 64 characters. See Task results for more details. status ¶ The status of the result. enqueued_at ¶ The time when the Task was enqueued. started_at ¶ The t ... ... lt currently being run. attempt [ソース] ¶ The number of the current execution attempts for this Task, starting at 1. Task results ¶ class TaskResultStatus [ソース] ¶ An Enum representing the status of a TaskResult . READY ¶ The Task has just been enque ... on, or was unable to start. SUCCESSFUL ¶ The Task has finished executing successfully. class TaskResult [ソース] ¶ The TaskResult stores the information about a specific execution of a Task . Attributes of TaskResult cannot be modified. task ¶ The Task ... rmat of the id will depend on the backend being used. Task result ids are always strings less than 64 characters. See Task results for more details. status ¶ The status of the result. enqueued_at ¶ The time when the Task was enqueued. started_at ¶ The t ... ... ews.py ¶ def detail ( request , question_id ): return HttpResponse ( "You're looking at question %s ." % question_id ) def results ( request , question_id ): response = "You're looking at the results of question %s ." return HttpResponse ( response % qu ... index , name = "index" ), # ex: /polls/5/ path ( "<int:question_id>/" , views . detail , name = "detail" ), # ex: /polls/5/results/ path ( "<int:question_id>/results/" , views . results , name = "results" ), # ex: /polls/5/vote/ path ( "<int:question_id ... = "vote" ), ] ブラウザで "/polls/34/" を見てください。 detail() 関数が実行され、URLで指定したIDが表示されます。 "/polls/34/results/" と "/polls/34/vote/" も試してみてください--これらはプレースホルダの結果と投票ページを表示します。 誰かがWebサイトの 「/p ... ... ews.py ¶ def detail ( request , question_id ): return HttpResponse ( "You're looking at question %s ." % question_id ) def results ( request , question_id ): response = "You're looking at the results of question %s ." return HttpResponse ( response % qu ... index , name = "index" ), # ex: /polls/5/ path ( "<int:question_id>/" , views . detail , name = "detail" ), # ex: /polls/5/results/ path ( "<int:question_id>/results/" , views . results , name = "results" ), # ex: /polls/5/vote/ path ( "<int:question_id ... = "vote" ), ] ブラウザで "/polls/34/" を見てください。 detail() 関数が実行され、URLで指定したIDが表示されます。 "/polls/34/results/" と "/polls/34/vote/" も試してみてください--これらはプレースホルダの結果と投票ページを表示します。 誰かがWebサイトの 「/p ... ... hanged to work iteratively. The problem is that the size of the input it's processing can increase on each iteration which results in an infinite loop in strip_tags() . This issue only affects versions of Python that haven't received a bugfix in HTMLPar ... it detects the length of the string it's processing increases. Remember that absolutely NO guarantee is provided about the results of strip_tags() being HTML safe. So NEVER mark safe the result of a strip_tags() call without escaping it first, for examp ... ースノート 関連キーワード strip tags safe URLs input issue user redirect control characters security problem it's processing results versions namely also example attack relies browsers ignore リリースノート March クイック検索 Last update: 2026年10月09日 « ... ... hanged to work iteratively. The problem is that the size of the input it's processing can increase on each iteration which results in an infinite loop in strip_tags() . This issue only affects versions of Python that haven't received a bugfix in HTMLPar ... it detects the length of the string it's processing increases. Remember that absolutely NO guarantee is provided about the results of strip_tags() being HTML safe. So NEVER mark safe the result of a strip_tags() call without escaping it first, for examp ... キーワード strip tags safe Django URLs input issue Python user redirect control characters security problem it's processing results versions namely also 関連するページ Django 1.7.7 リリースノート Django 5.1.4 リリースノート Django 4.2.17 リリースノート D ... 2026年10月08日