per page, with , order by , clip by
Results of 1 - 10 of about 60 for cycle (0.022 sec.)
組み込みテンプレートタグとフィルタ — Django 6.1 ドキュメント 14091
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 組み込みテンプレートタグとフィルタ ¶ このドキュメントでは、 Django の組み込みテンプレートタグとフィルタについて述べます。 また 自動ドキュメンテーショ ... rocessor is not configured, assets are rendered without a nonce attribute. See Nonce usage for full configuration details. cycle ¶ タグを実行するごとに、引数の文字列や変数から、順に一つずつ値を出力します。最初の処理では 1 番目の値が、その次に 2 番目の ... 出力すると、再び 1 番目に戻って出力します。 このタグは特にループの中で役立ちます: {% for o in some_list %} < tr class = " {% cycle 'row1' 'row2' %} " > ... </ tr > {% endfor %} この例では、繰り返しの最初の実行では row1 クラスを参照する HTML が生成されま ... lue2 という2つのテンプレート変数がある場合、以下のように交互に値を変更できます: {% for o in some_list %} < tr class = " {% cycle rowvalue1 rowvalue2 %} " > ... </ tr > {% endfor %} Variables included in the cycle will be escaped. You can disable auto- ...
https://man.mtool.work/django/6.1/ref/templates/builtins.html
組み込みテンプレートタグとフィルタ — Django 6.1 ドキュメント 14091
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 組み込みテンプレートタグとフィルタ ¶ このドキュメントでは、 Django の組み込みテンプレートタグとフィルタについて述べます。 また 自動ドキュメンテーショ ... rocessor is not configured, assets are rendered without a nonce attribute. See Nonce usage for full configuration details. cycle ¶ タグを実行するごとに、引数の文字列や変数から、順に一つずつ値を出力します。最初の処理では 1 番目の値が、その次に 2 番目の ... 出力すると、再び 1 番目に戻って出力します。 このタグは特にループの中で役立ちます: {% for o in some_list %} < tr class = " {% cycle 'row1' 'row2' %} " > ... </ tr > {% endfor %} この例では、繰り返しの最初の実行では row1 クラスを参照する HTML が生成されま ... lue2 という2つのテンプレート変数がある場合、以下のように交互に値を変更できます: {% for o in some_list %} < tr class = " {% cycle rowvalue1 rowvalue2 %} " > ... </ tr > {% endfor %} Variables included in the cycle will be escaped. You can disable auto- ...
https://man.mtool.work/django/6.1/ref/templates/builtins.html
独自のテンプレートタグとフィルタを作る — Django 6.1 ドキュメント 8609
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 独自のテンプレートタグとフィルタを作る ¶ Django のテンプレート言語は、アプリケーションのプレゼンテーションロジックのニーズに対応するように設計された ... 、ノード自体に状態情報を保存してはいけません。例えば、 Django にはレンダリングされる度に与えられた文字列のリストを循環させる cycle テンプレートタグが用意されています: {% for o in some_list %} < tr class = " {% cycle 'row1' 'row2' %} " > ... </ tr > {% e ... ndfor %} ナイーブな CycleNode の実装は次のようになります: import itertools from django import template class CycleNode ( template . Node ): def __in ... it__ ( self , cyclevars ): self . cycle_iter = itertools . cycle ( cyclevars ) def render ( self , context ): return next ( self . cycle_iter ...
https://man.mtool.work/django/6.1/howto/custom-template-tags.html
独自のテンプレートタグとフィルタを作る — Django 6.1 ドキュメント 8609
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 独自のテンプレートタグとフィルタを作る ¶ Django のテンプレート言語は、アプリケーションのプレゼンテーションロジックのニーズに対応するように設計された ... 、ノード自体に状態情報を保存してはいけません。例えば、 Django にはレンダリングされる度に与えられた文字列のリストを循環させる cycle テンプレートタグが用意されています: {% for o in some_list %} < tr class = " {% cycle 'row1' 'row2' %} " > ... </ tr > {% e ... ndfor %} ナイーブな CycleNode の実装は次のようになります: import itertools from django import template class CycleNode ( template . Node ): def __in ... it__ ( self , cyclevars ): self . cycle_iter = itertools . cycle ( cyclevars ) def render ( self , context ): return next ( self . cycle_iter ...
https://man.mtool.work/django/6.1/howto/custom-template-tags.html
Django's Tasks framework — Django 6.1 ドキュメント 8434
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django's Tasks framework ¶ New in Django 6.0: For older Django versions, the django-tasks backport is available. For a web application, there's ofte ... g HTTP requests into HTTP responses. 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 ... , executes it, and saves the status and result back to the Queue Store. These workers run outside the request-response lifecycle. Configuring a Task backend ¶ The Task backend determines how and where Tasks are stored for execution and how they are ex ... of type datetime is not JSON serializable Arguments must also be able to round-trip through a json.dumps() / json.loads() cycle without changing type. For example, consider this Task: @task () def double_dictionary ( key ): return { key : key * 2 } W ...
https://man.mtool.work/django/6.1/topics/tasks.html
Django's Tasks framework — Django 6.1 ドキュメント 8434
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django's Tasks framework ¶ New in Django 6.0: For older Django versions, the django-tasks backport is available. For a web application, there's ofte ... g HTTP requests into HTTP responses. 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 ... , executes it, and saves the status and result back to the Queue Store. These workers run outside the request-response lifecycle. Configuring a Task backend ¶ The Task backend determines how and where Tasks are stored for execution and how they are ex ... of type datetime is not JSON serializable Arguments must also be able to round-trip through a json.dumps() / json.loads() cycle without changing type. For example, consider this Task: @task () def double_dictionary ( key ): return { key : key * 2 } W ...
https://man.mtool.work/django/6.1/topics/tasks.html
Django 1.2 リリースノート — Django 6.1 ドキュメント 8274
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.2 リリースノート ¶ 2010 年 5 月 17 日 Django 1.2 へようこそ! Nearly a year in the making, Django 1.2 packs an impressive list of new featur ... セーフでない ことに依存していた場合は、テンプレートを更新する必要があるかもしれません。特に include タグと併用していた場合、 cycle タグが最も影響を受けやすいでしょう。次のようなテンプレートを考えてみます。 {% for object in object_list %} {% include "sub ... template.html" %} {% endfor %} with a subtemplate.html that reads: {% cycle 'even' 'odd' %} Django 1.2 以前のスレッドセーフでないレンダラーを使用すると、以下のように出力されます。 even odd even odd ... 力されます。 even even even even ... This is because each rendering of the include tag is an independent rendering. When the cycle tag was not thread safe, the state of the cycle tag would leak between multiple renderings of the same include . Now that ...
https://man.mtool.work/django/6.1/releases/1.2.html
Django 1.8 リリースノート — Django 6.1 ドキュメント 8274
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.8 リリースノート ¶ April 1, 2015 Django 1.8 へようこそ! このリリースノートでは、 バージョン 1.8 の新機能 と、Django 1.7 以前からアップグレー ... butes are specified. Previously, fields was silently ignored. When following redirects, the test client now raises RedirectCycleError if it detects a loop or hits a maximum redirect limit (rather than passing silently). Translatable strings set as the ... cts_with_model() get_concrete_fields_with_model() get_field_by_name() get_fields_with_model() get_m2m_with_model() Loading cycle and firstof template tags from future library ¶ Django 1.6 introduced {% load cycle from future %} and {% load firstof fro ... m future %} syntax for forward compatibility of the cycle and firstof template tags. This syntax is now deprecated and will be removed in Django 1.10. You can simply remove the {% ...
https://man.mtool.work/django/6.1/releases/1.8.html
Django 1.2 リリースノート — Django 6.1 ドキュメント 8274
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.2 リリースノート ¶ 2010 年 5 月 17 日 Django 1.2 へようこそ! Nearly a year in the making, Django 1.2 packs an impressive list of new featur ... セーフでない ことに依存していた場合は、テンプレートを更新する必要があるかもしれません。特に include タグと併用していた場合、 cycle タグが最も影響を受けやすいでしょう。次のようなテンプレートを考えてみます。 {% for object in object_list %} {% include "sub ... template.html" %} {% endfor %} with a subtemplate.html that reads: {% cycle 'even' 'odd' %} Django 1.2 以前のスレッドセーフでないレンダラーを使用すると、以下のように出力されます。 even odd even odd ... 力されます。 even even even even ... This is because each rendering of the include tag is an independent rendering. When the cycle tag was not thread safe, the state of the cycle tag would leak between multiple renderings of the same include . Now that ...
https://man.mtool.work/django/6.1/releases/1.2.html
Django 1.8 リリースノート — Django 6.1 ドキュメント 8274
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.8 リリースノート ¶ April 1, 2015 Django 1.8 へようこそ! このリリースノートでは、 バージョン 1.8 の新機能 と、Django 1.7 以前からアップグレー ... butes are specified. Previously, fields was silently ignored. When following redirects, the test client now raises RedirectCycleError if it detects a loop or hits a maximum redirect limit (rather than passing silently). Translatable strings set as the ... cts_with_model() get_concrete_fields_with_model() get_field_by_name() get_fields_with_model() get_m2m_with_model() Loading cycle and firstof template tags from future library ¶ Django 1.6 introduced {% load cycle from future %} and {% load firstof fro ... m future %} syntax for forward compatibility of the cycle and firstof template tags. This syntax is now deprecated and will be removed in Django 1.10. You can simply remove the {% ...
https://man.mtool.work/django/6.1/releases/1.8.html
PREV 1 2 3 4 5 6 NEXT