Results of 31 - 40 of about 96 for kwargs (0.064 sec.)
- モデルインスタンスリファレンス — Django 4.0.6 ドキュメント 6513
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
e it like any other Python class: class Model ( ** kwargs ) ¶ The keyword arguments are the names of the fie ...
)) ) return instance def save ( self , * args , ** kwargs ): # Check how the current values differ from ._lo ...
tor isn't allowed" ) super () . save ( * args , ** kwargs ) The example above shows a full from_db() impleme ...
from_db ( self , using = None , fields = None , ** kwargs ): # fields contains the name of the deferred fiel ...
-
https://man.plustar.jp/django/ref/models/instances.html
- [similar]
- テストツール — Django 4.0.6 ドキュメント 6513
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
n occurred, then exc_info will be None . json ( ** kwargs ) ¶ JSON としてパースされた、レスポンスの本文です。 ...
en the value doesn't exist. override_settings ( ** kwargs ) ¶ In case you want to override a setting for a t ...
in/?next=/sekrit/' ) modify_settings ( * args , ** kwargs ) ¶ Likewise, Django provides the modify_settings( ...
eption , expected_message , callable , * args , ** kwargs ) ¶ SimpleTestCase. assertRaisesMessage ( expected ...
-
https://man.plustar.jp/django/topics/testing/tools.html
- [similar]
- Django Utils — Django 4.0.6 ドキュメント 6461
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
nguage header. patch_cache_control ( response , ** kwargs ) ¶ This function patches the Cache-Control header ...
yright = None , feed_guid = None , ttl = None , ** kwargs ) ¶ Initialize the feed with the given dictionary ...
None , updateddate = None , enclosures = None , ** kwargs ) ¶ Adds an item to the feed. All args are expecte ...
escape. format_html ( format_string , * args , ** kwargs ) [ソース] ¶ This is similar to str.format() , exc ...
-
https://man.plustar.jp/django/ref/utils.html
- [similar]
- ビルトインのクラスベースのジェネリックビュー — Django 4.0.6 ドキュメント 6461
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
model = Publisher def get_context_data ( self , ** kwargs ): # Call the base implementation first to get a c ...
ontext context = super () . get_context_data ( ** kwargs ) # Add in a QuerySet of all the books context [ ' ...
置引数 ( self.args )、そして、キーワード引数 ( self.kwargs ) が、URLconf からキャプチャされてきています。 ここ ...
er = get_object_or_404 ( Publisher , name = self . kwargs [ 'publisher' ]) return Book . objects . filter ( ...
-
https://man.plustar.jp/django/topics/class-based-views/generic-display.html
- [similar]
- django.contrib.gis.measure — Django 4.0.6 ドキュメント 6395
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
{} def __init__ ( self , default_unit = None , ** kwargs ): value , self . _default_unit = self . default_u ...
nits ( kwargs ) setattr ( self , self . STANDARD_UNIT , value ) ...
ool ( self . standard ) def default_units ( self , kwargs ): """ Return the unit value and the default units ...
lt_unit = self . STANDARD_UNIT for unit , value in kwargs . items (): if not isinstance ( value , float ): v ...
-
https://man.plustar.jp/django/_modules/django/contrib/gis/measure.html
- [similar]
- クラスベースビュー入門 — Django 4.0.6 ドキュメント 6395
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
plate.html' def get ( self , request , * args , ** kwargs ): form = self . form_class ( initial = self . ini ...
: form }) def post ( self , request , * args , ** kwargs ): form = self . form_class ( request . POST ) if ...
login_required ) def dispatch ( self , * args , ** kwargs ): return super () . dispatch ( * args , ** kwargs ...
or は、クラスのデコレートするメソッドに *args と **kwargs を引数として渡します。定義されているメソッドが互換 ...
-
https://man.plustar.jp/django/topics/class-based-views/intro.html
- [similar]
- django.utils.html — Django 4.0.6 ドキュメント 6343
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
ント] def format_html ( format_string , * args , ** kwargs ): """ Similar to str.format, but pass all argumen ...
""" args_safe = map ( conditional_escape , args ) kwargs_safe = { k : conditional_escape ( v ) for ( k , v ...
) in kwargs . items ()} return mark_safe ( format_string . for ...
mat ( * args_safe , ** kwargs_safe )) [ドキュメント] def format_html_join ( sep ...
-
https://man.plustar.jp/django/_modules/django/utils/html.html
- [similar]
- Django 1.4 release notes — Django 4.0.6 ドキュメント 6343
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
xt keyword. Customizable SingleObjectMixin URLConf kwargs ¶ Two new attributes, pk_url_kwarg and slug_url_kw ...
data in a specified context variable. *args and **kwargs support for template tag helper functions ¶ The si ...
ster . simple_tag def my_tag ( a , b , * args , ** kwargs ): warning = kwargs [ 'warning' ] profile = kwargs ...
ocktrans %} Customizable SingleObjectMixin URLConf kwargs Assignment template tags *args and **kwargs suppor ...
-
https://man.plustar.jp/django/releases/1.4.html
- [similar]
- django.utils.module_loading — Django 4.0.6 ドキュメント 6224
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
) from err def autodiscover_modules ( * args , ** kwargs ): """ Auto-discover INSTALLED_APPS modules and fa ...
it. """ from django.apps import apps register_to = kwargs . get ( "register_to" ) for app_config in apps . g ...
-
https://man.plustar.jp/django/_modules/django/utils/module_loading.html
- [similar]
- Signals — Django 4.0.6 ドキュメント 6224
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
ist of positional arguments passed to __init__() . kwargs A dictionary of keyword arguments passed to __init ...
ere no positional arguments passed to __init__() ) kwargs {'question_text': "What's new?", 'pub_date': datet ...
ort m2m_changed def toppings_changed ( sender , ** kwargs ): # Do something pass m2m_changed . connect ( top ...
import post_migrate def my_callback ( sender , ** kwargs ): # Your specific logic here pass class MyAppConf ...
-
https://man.plustar.jp/django/ref/signals.html
- [similar]