検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 96 for kwargs (0.023 sec.)
django.utils.translation — Django 4.0.6 ドキュメント 11333
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... y_number ( func , resultclass , number = None , ** kwargs ): if isinstance ( number , int ): kwargs [ "numbe ... ] = number proxy = lazy ( func , resultclass )( ** kwargs ) else : original_kwargs = kwargs . copy () class ... esultclass ): def __bool__ ( self ): return bool ( kwargs [ "singular" ]) def _get_number_value ( self , val ... % number ) def _translate ( self , number_value ): kwargs [ "number" ] = number_value return func ( ** kwarg ...
https://man.plustar.jp/django/_modules/django/utils/translation.html - [similar]
django.core.checks.messages — Django 4.0.6 ドキュメント 10440
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... CheckMessage ): def __init__ ( self , * args , ** kwargs ): super () . __init__ ( DEBUG , * args , ** kwarg ... CheckMessage ): def __init__ ( self , * args , ** kwargs ): super () . __init__ ( INFO , * args , ** kwargs ... CheckMessage ): def __init__ ( self , * args , ** kwargs ): super () . __init__ ( WARNING , * args , ** kwa ... CheckMessage ): def __init__ ( self , * args , ** kwargs ): super () . __init__ ( ERROR , * args , ** kwarg ...
https://man.plustar.jp/django/_modules/django/core/checks/messages.html - [similar]
Form fields — Django 4.0.6 ドキュメント 10374
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... vious | up | next » Form fields ¶ class Field ( ** kwargs ) ¶ Form クラスを作成時の一番重要な部分は、form の ... hat means). BooleanField ¶ class BooleanField ( ** kwargs ) ¶ デフォルトのウィジェット: CheckboxInput 空の値 ... he BooleanField . CharField ¶ class CharField ( ** kwargs ) ¶ デフォルトのウィジェット: TextInput 空の値: em ... empty string. ChoiceField ¶ class ChoiceField ( ** kwargs ) ¶ デフォルトのウィジェット: Select 空の値: '' (空 ...
https://man.plustar.jp/django/ref/forms/fields.html - [similar]
システムチェックフレームワーク — Django 4.0.6 ドキュメント 10072
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... @register () def example_check ( app_configs , ** kwargs ): errors = [] # ... your check logic here if chec ... check must not use any database connections. The **kwargs argument is required for future expansion. メッセー ... . compatibility ) def my_check ( app_configs , ** kwargs ): # ... perform compatibility checks and collect ... , deploy = True ) def my_check ( app_configs , ** kwargs ): ... These checks will only be run if the check ...
https://man.plustar.jp/django/topics/checks.html - [similar]
クラスベースのビューでミックスインを使用する — Django 4.0.6 ドキュメント 9836
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... l = Author def post ( self , request , * args , ** kwargs ): if not request . user . is_authenticated : retu ... HttpResponseRedirect ( reverse ( 'author-detail' , kwargs = { 'pk' : self . object . pk })) In practice you' ... etail.html" def get ( self , request , * args , ** kwargs ): self . object = self . get_object ( queryset = ... ()) return super () . get ( request , * args , ** kwargs ) def get_context_data ( self , ** kwargs ): conte ...
https://man.plustar.jp/django/topics/class-based-views/mixins.html - [similar]
Base views — Django 4.0.6 ドキュメント 9586
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... w ( View ): def get ( self , request , * args , ** kwargs ): return HttpResponse ( 'Hello, World!' ) Example ... , 'trace' ] メソッド classmethod as_view ( ** initkwargs ) ¶ リクエストを受け取ってレスポンスを返す、呼び出 ... equest ) 返されたビューは、 view_class と view_initkwargs 属性を持っています。 When the view is called durin ... ents captured from the URL pattern to the args and kwargs attributes, respectively. Then dispatch() is calle ...
https://man.plustar.jp/django/ref/class-based-views/base.html - [similar]
mixinを編集する — Django 4.0.6 ドキュメント 9114
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... stantiate an instance of form_class using get_form_kwargs() . If form_class isn't provided get_form_class() ... will be used. get_form_kwargs () ¶ フォームのインスタンス化に必要なキーワード引数 ... the invalid form as context. get_context_data ( ** kwargs ) ¶ Calls get_form() and adds the result to the co ... depending on which attribute is provided. get_form_kwargs () ¶ Add the current instance ( self.object ) to t ...
https://man.plustar.jp/django/ref/class-based-views/mixins-editing.html - [similar]
How to create custom model fields — Django 4.0.6 ドキュメント 9048
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... (bridge style)" def __init__ ( self , * args , ** kwargs ): kwargs [ 'max_length' ] = 104 super () . __init ... __ ( * args , ** kwargs ) Our HandField accepts most of the standard field ... odels . Field ): def __init__ ( self , * args , ** kwargs ): kwargs [ 'max_length' ] = 104 super () . __init ... __ ( * args , ** kwargs ) def deconstruct ( self ): name , path , args , k ...
https://man.plustar.jp/django/howto/custom-model-fields.html - [similar]
django.urls utility functions — Django 4.0.6 ドキュメント 9048
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... everse ( viewname , urlconf = None , args = None , kwargs = None , current_app = None ) ¶ viewname can be a ... rch-summary' , args = [ 1945 ])) You can also pass kwargs instead of args . For example: >>> reverse ( 'admi ... n:app_list' , kwargs = { 'app_label' : 'auth' }) '/admin/auth/' args an ... d kwargs cannot be passed to reverse() at the same time. If ...
https://man.plustar.jp/django/ref/urlresolvers.html - [similar]
Advanced testing topics — Django 4.0.6 ドキュメント 8562
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... 'myapp/home.html' def get_context_data ( self , ** kwargs ): kwargs [ 'environment' ] = 'Production' return ... super () . get_context_data ( ** kwargs ) You may directly test the get_context_data() met ... ming = True , shuffle = False , logger = None , ** kwargs ) ¶ DiscoverRunner will search for tests in any fi ... of the test runner by adding new arguments. The **kwargs declaration allows for this expansion. If you subc ...
https://man.plustar.jp/django/topics/testing/advanced.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 NEXT