... に問題になるかもしれません。もしあなたがサイクルを宣言したいだけで初期値を生成させたくない場合には、タグのキーワードの最後に silent を加えてください。以下に例を示します: {% for obj in some_list %} {% cycle 'row1' 'row2' as rowcolors silent %} < tr class ... 。サブテンプレートではそのコンテキスト内で rowcolors にアクセスし、値はそれを取り囲む <tr> のクラスに一致します。ここでもし silent キーワードが無かったら、 row1 と row2 は <tr> エレメントの外側で通常のテキストとして発行されます。 あるサイクルの定義におい ... て silent キーワードが使われているとき、後に続いて使われる cycle タグには自動的に silent が適用されます。次に示すテンプレートは、 2 ... ... す。 save() のキーワード引数 ¶ LayerMapping. save ( verbose = False , fid_range = False , step = False , progress = False , silent = False , stream = sys.stdout , strict = False ) [ソース] ¶ The save() method also accepts keywords. These keywords are us ... tures processed, however, this default may be overridden by setting this keyword with an integer for the desired interval. silent デフォルトでは、致命的でないエラー通知は sys.stdout に出力されますが、このキーワードを設定すると、これらの通知を無効できま ... ... に問題になるかもしれません。もしあなたがサイクルを宣言したいだけで初期値を生成させたくない場合には、タグのキーワードの最後に silent を加えてください。以下に例を示します: {% for obj in some_list %} {% cycle 'row1' 'row2' as rowcolors silent %} < tr class ... 。サブテンプレートではそのコンテキスト内で rowcolors にアクセスし、値はそれを取り囲む <tr> のクラスに一致します。ここでもし silent キーワードが無かったら、 row1 と row2 は <tr> エレメントの外側で通常のテキストとして発行されます。 あるサイクルの定義におい ... て silent キーワードが使われているとき、後に続いて使われる cycle タグには自動的に silent が適用されます。次に示すテンプレートは、 2 ... ... す。 save() のキーワード引数 ¶ LayerMapping. save ( verbose = False , fid_range = False , step = False , progress = False , silent = False , stream = sys.stdout , strict = False ) [ソース] ¶ The save() method also accepts keywords. These keywords are us ... tures processed, however, this default may be overridden by setting this keyword with an integer for the desired interval. silent デフォルトでは、致命的でないエラー通知は sys.stdout に出力されますが、このキーワードを設定すると、これらの通知を無効できま ... ... しか必要としない変数よりも少し複雑です。以下に注意すべき点を示します: この変数が呼び出されたときに例外が発生した場合、例外が silent_variable_failure 属性の値が True でない限り、例外は伝播します。例外に silent_variable_failure 属性があり、その値が True で ... ass3 () >>> t . render ( Context ({ "person" : p })) Traceback (most recent call last): ... AssertionError : foo >>> class SilentAssertionError ( Exception ): ... silent_variable_failure = True ... >>> class PersonClass4 : ... def first_name ( self ): ... ... raise SilentAssertionError ... >>> p = PersonClass4 () >>> t . render ( Context ({ "person" : p })) "My name is ." django.core.exceptio ... ... しか必要としない変数よりも少し複雑です。以下に注意すべき点を示します: この変数が呼び出されたときに例外が発生した場合、例外が silent_variable_failure 属性の値が True でない限り、例外は伝播します。例外に silent_variable_failure 属性があり、その値が True で ... ass3 () >>> t . render ( Context ({ "person" : p })) Traceback (most recent call last): ... AssertionError : foo >>> class SilentAssertionError ( Exception ): ... silent_variable_failure = True ... >>> class PersonClass4 : ... def first_name ( self ): ... ... raise SilentAssertionError ... >>> p = PersonClass4 () >>> t . render ( Context ({ "person" : p })) "My name is ." django.core.exceptio ... ... e taking advantage of any of the features below will raise a PendingDeprecationWarning in Django 1.3. This warning will be silent by default, but may be turned on using Python's warnings module, or by running Python with a -Wd or -Wall flag. In Django ... 1.4, these warnings will become a DeprecationWarning , which is not silent. In Django 1.5 support for these features will be removed entirely. 参考 For more details, see the documentation Django's ... ated for the class-based runner, django.contrib.gis.tests.GeoDjangoTestSuiteRunner . Previously, calling transform() would silently do nothing when GDAL wasn't available. Now, a GEOSException is properly raised to indicate possible faulty application c ... ... e taking advantage of any of the features below will raise a PendingDeprecationWarning in Django 1.3. This warning will be silent by default, but may be turned on using Python's warnings module, or by running Python with a -Wd or -Wall flag. In Django ... 1.4, these warnings will become a DeprecationWarning , which is not silent. In Django 1.5 support for these features will be removed entirely. 参考 For more details, see the documentation Django's ... ated for the class-based runner, django.contrib.gis.tests.GeoDjangoTestSuiteRunner . Previously, calling transform() would silently do nothing when GDAL wasn't available. Now, a GEOSException is properly raised to indicate possible faulty application c ... ... e taking advantage of any of the features below will raise a PendingDeprecationWarning in Django 1.2. This warning will be silent by default, but may be turned on using Python's warnings module, or by running Python with a -Wd or -Wall flag. In Django ... 1.3, these warnings will become a DeprecationWarning , which is not silent. In Django 1.4 support for these features will be removed entirely. 参考 For more details, see the documentation Django's ... ... e taking advantage of any of the features below will raise a PendingDeprecationWarning in Django 1.2. This warning will be silent by default, but may be turned on using Python's warnings module, or by running Python with a -Wd or -Wall flag. In Django ... 1.3, these warnings will become a DeprecationWarning , which is not silent. In Django 1.4 support for these features will be removed entirely. 参考 For more details, see the documentation Django's ... 2026年10月08日