per page, with , order by , clip by
Results of 1 - 10 of about 34 for parser (0.007 sec.)
独自のテンプレートタグとフィルタを作る — Django 6.1 ドキュメント 12638
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 独自のテンプレートタグとフィルタを作る ¶ Django のテンプレート言語は、アプリケーションのプレゼンテーションロジックのニーズに対応するように設計された ... パーサは、パラメータを取得して Node オブジェクトを作成する必要があります: from django import template def do_current_time ( parser , token ): try : # split_contents() knows not to split quoted strings. tag_name , format_string = token . split_contents ( ... taxError ( " %r tag's argument should be in quotes" % tag_name ) return CurrentTimeNode ( format_string [ 1 : - 1 ]) メモ: parser はテンプレートパーサーオブジェクトです。この例では不要です。 token.contents はタグの生の内容を表す文字列です。この例では ' ... ルタ登録と同様に、これをデコレータとして使うこともできます。 @register . tag ( name = "current_time" ) def do_current_time ( parser , token ): ... @register . tag def shout ( parser , token ): ... name 引数を省略した場合、上記の2番目の例と同じように、Dja ...
https://man.mtool.work/django/6.1/howto/custom-template-tags.html
独自のテンプレートタグとフィルタを作る — Django 6.1 ドキュメント 12638
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 独自のテンプレートタグとフィルタを作る ¶ Django のテンプレート言語は、アプリケーションのプレゼンテーションロジックのニーズに対応するように設計された ... パーサは、パラメータを取得して Node オブジェクトを作成する必要があります: from django import template def do_current_time ( parser , token ): try : # split_contents() knows not to split quoted strings. tag_name , format_string = token . split_contents ( ... taxError ( " %r tag's argument should be in quotes" % tag_name ) return CurrentTimeNode ( format_string [ 1 : - 1 ]) メモ: parser はテンプレートパーサーオブジェクトです。この例では不要です。 token.contents はタグの生の内容を表す文字列です。この例では ' ... ルタ登録と同様に、これをデコレータとして使うこともできます。 @register . tag ( name = "current_time" ) def do_current_time ( parser , token ): ... @register . tag def shout ( parser , token ): ... name 引数を省略した場合、上記の2番目の例と同じように、Dja ...
https://man.mtool.work/django/6.1/howto/custom-template-tags.html
カスタム django-admin コマンドの作り方 — Django 6.1 ドキュメント 10401
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » カスタム django-admin コマンドの作り方 ¶ manage.py を用いることで独自のアクションを登録する事ができます。例として、あなたが配布している Django アプリ ... t Question as Poll class Command ( BaseCommand ): help = "Closes the specified poll for voting" def add_arguments ( self , parser ): parser . add_argument ( "poll_ids" , nargs = "+" , type = int ) def handle ( self , * args , ** options ): for poll_id ... ムオプションは、次のように add_arguments() メソッドで追加できます: class Command ( BaseCommand ): def add_arguments ( self , parser ): # Positional arguments parser . add_argument ( "poll_ids" , nargs = "+" , type = int ) # Named (optional) arguments par ... ommand ): def __init__ ( self , * args , ** kwargs ): super () . __init__ ( * args , ** kwargs ) # ... BaseCommand. create_parser ( prog_name , subcommand , ** kwargs ) [ソース] ¶ CommandParser インスタンスを返します。これは ArgumentParser サブクラスで ...
https://man.mtool.work/django/6.1/howto/custom-management-commands.html
Django 1.8.15 リリースノート — Django 6.1 ドキュメント 10097
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.8.15 リリースノート ¶ September 26, 2016 Django 1.8.15 fixes a security issue in 1.8.14. CSRF protection bypass on a site with Google Analy ... s and Django's cookie parsing could allow an attacker to set arbitrary cookies leading to a bypass of CSRF protection. The parser for request.COOKIES is simplified to better match the behavior of browsers and to mitigate this attack. request.COOKIES ma ... es request リリースノート September fixes security issue site interaction between parsing allow attacker arbitrary leading parser simplified better match behavior クイック検索 Last update: 2026年10月09日 « previous | up | next » ...
https://man.mtool.work/django/6.1/releases/1.8.15.html
カスタム django-admin コマンドの作り方 — Django 6.1 ドキュメント 9953
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » カスタム django-admin コマンドの作り方 ¶ manage.py を用いることで独自のアクションを登録する事ができます。例として、あなたが配布している Django アプリ ... t Question as Poll class Command ( BaseCommand ): help = "Closes the specified poll for voting" def add_arguments ( self , parser ): parser . add_argument ( "poll_ids" , nargs = "+" , type = int ) def handle ( self , * args , ** options ): for poll_id ... ムオプションは、次のように add_arguments() メソッドで追加できます: class Command ( BaseCommand ): def add_arguments ( self , parser ): # Positional arguments parser . add_argument ( "poll_ids" , nargs = "+" , type = int ) # Named (optional) arguments par ... ommand ): def __init__ ( self , * args , ** kwargs ): super () . __init__ ( * args , ** kwargs ) # ... BaseCommand. create_parser ( prog_name , subcommand , ** kwargs ) [ソース] ¶ CommandParser インスタンスを返します。これは ArgumentParser サブクラスで ...
https://man.mtool.work/django/6.1/howto/custom-management-commands.html
Django 1.9.10 リリースノート — Django 6.1 ドキュメント 9953
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.9.10 リリースノート ¶ September 26, 2016 Django 1.9.10 では、1.9.9 にあった1つのセキュリティの問題を修正しました。 CSRF protection bypass o ... s and Django's cookie parsing could allow an attacker to set arbitrary cookies leading to a bypass of CSRF protection. The parser for request.COOKIES is simplified to better match the behavior of browsers and to mitigate this attack. request.COOKIES ma ... request リリースノート September セキュリティ 問題 修正 site interaction between parsing allow attacker arbitrary leading parser simplified better match behavior クイック検索 Last update: 2026年10月09日 « previous | up | next » ...
https://man.mtool.work/django/6.1/releases/1.9.10.html
Django 1.3.6 リリースノート — Django 6.1 ドキュメント 8915
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.3.6 リリースノート ¶ February 19, 2013 Django 1.3.6 fixes four security issues present in previous Django releases in the 1.3 series. This ... estrictive value. This host validation is disabled when DEBUG is True or when running tests. XML deserialization ¶ The XML parser in the Python standard library is vulnerable to a number of attacks via external entities and entity expansion. Django use ... s this parser for deserializing XML-formatted database fixtures. The fixture deserializer is not intended for use with untrusted data, b ...
https://man.mtool.work/django/6.1/releases/1.3.6.html
Django 1.3.6 リリースノート — Django 6.1 ドキュメント 8755
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.3.6 リリースノート ¶ February 19, 2013 Django 1.3.6 fixes four security issues present in previous Django releases in the 1.3 series. This ... estrictive value. This host validation is disabled when DEBUG is True or when running tests. XML deserialization ¶ The XML parser in the Python standard library is vulnerable to a number of attacks via external entities and entity expansion. Django use ... s this parser for deserializing XML-formatted database fixtures. The fixture deserializer is not intended for use with untrusted data, b ...
https://man.mtool.work/django/6.1/releases/1.3.6.html
Django 1.4.4 リリースノート — Django 6.1 ドキュメント 8755
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.4.4 リリースノート ¶ February 19, 2013 Django 1.4.4 fixes four security issues present in previous Django releases in the 1.4 series, as we ... estrictive value. This host validation is disabled when DEBUG is True or when running tests. XML deserialization ¶ The XML parser in the Python standard library is vulnerable to a number of attacks via external entities and entity expansion. Django use ... s this parser for deserializing XML-formatted database fixtures. This deserializer is not intended for use with untrusted data, but in o ...
https://man.mtool.work/django/6.1/releases/1.4.4.html
Django 1.4.4 リリースノート — Django 6.1 ドキュメント 8611
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 1.4.4 リリースノート ¶ February 19, 2013 Django 1.4.4 fixes four security issues present in previous Django releases in the 1.4 series, as we ... estrictive value. This host validation is disabled when DEBUG is True or when running tests. XML deserialization ¶ The XML parser in the Python standard library is vulnerable to a number of attacks via external entities and entity expansion. Django use ... s this parser for deserializing XML-formatted database fixtures. This deserializer is not intended for use with untrusted data, but in o ...
https://man.mtool.work/django/6.1/releases/1.4.4.html
PREV 1 2 3 4 NEXT