検索

phrase: max: clip:
target: order:
Results of 101 - 110 of about 189 for return (0.062 sec.)
テンプレート — Django 4.0.6 ドキュメント 5018
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ate オブジェクトを返します。 The exact type of the return value depends on the backend that loaded the templ ... te was found but contains errors. Template objects returned by get_template() and select_template() must pro ... feeds the result into an HttpResponse suitable for returning from a view. Finally, you can use configured en ... lables take a request object as their argument and return a dict of items to be merged into the context. It ...
https://man.plustar.jp/django/topics/templates.html - [similar]
The staticfiles app — Django 4.0.6 ドキュメント 4985
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... default, all matching locations are found. To only return the first match for each relative path, use the -- ... when creating the hashed name of a file. Needs to return a hash for the given file name and content. By def ... rm's map files. If you find that this view doesn't return proper content types for certain files, it is most ... you: urls. staticfiles_urlpatterns () ¶ This will return the proper URL pattern for serving static files to ...
https://man.plustar.jp/django/ref/contrib/staticfiles.html - [similar]
Database Functions — Django 4.0.6 ドキュメント 4985
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ist of at least two field names or expressions and returns the first non-null value (note that an empty stri ... ame ) Maggie >>> # Prevent an aggregate Sum() from returning None >>> # The aggregate default argument uses ... ist of at least two field names or expressions and returns the greatest value. Each argument must be of a si ... aries between databases: PostgreSQL: Greatest will return the largest non-null expression, or null if all ex ...
https://man.plustar.jp/django/ref/models/database-functions.html - [similar]
モデルからフォームを作成する — Django 4.0.6 ドキュメント 4985
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... blank = True , null = True ) def __str__ ( self ): return self . name class Book ( models . Model ): name = ... rameter when instantiating the model formset class returned by modelformset_factory() . However, with model ... >> instances = formset . save () The save() method returns the instances that have been saved to the databas ... saved to the database and won't be included in the return value ( instances , in the above example). When fi ...
https://man.plustar.jp/django/topics/forms/modelforms.html - [similar]
Base views — Django 4.0.6 ドキュメント 4952
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... : def get ( self , request , * args , ** kwargs ): return HttpResponse ( 'Hello, World!' ) Example urls.py : ... hat accepts a request argument plus arguments, and returns an HTTP response. デフォルトの処理は、HTTP メソッ ... est_articles' ] = Article . objects . all ()[: 5 ] return context Example urls.py : from django.urls import ... pk = kwargs [ 'pk' ]) article . update_counter () return super () . get_redirect_url ( * args , ** kwargs ) ...
https://man.plustar.jp/django/ref/class-based-views/base.html - [similar]
Generic editing ビュー — Django 4.0.6 ドキュメント 4952
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... max_length = 200 ) def get_absolute_url ( self ): return reverse ( 'author-detail' , kwargs = { 'pk' : self ... when valid form data has been POSTed. # It should return an HttpResponse. form . send_email () return super ...
https://man.plustar.jp/django/ref/class-based-views/generic-editing.html - [similar]
フォームセット (Formset) — Django 4.0.6 ドキュメント 4952
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ata. Changed in Django 3.2: formset.is_valid() now returns False rather than raising an exception when the m ... e formset unless each form is valid on its own ... return ... titles = [] ... for form in self . forms : ... ... rmSet ): ... def get_ordering_widget ( self ): ... return HiddenInput ( attrs = { 'class' : 'ordering' }) >> ... rmSet ): ... def get_deletion_widget ( self ): ... return HiddenInput ( attrs = { 'class' : 'deletion' }) >> ...
https://man.plustar.jp/django/topics/forms/formsets.html - [similar]
ロギング — Django 4.0.6 ドキュメント 4919
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... nt that does not match ALLOWED_HOSTS , Django will return a 400 response, and an error message will be logge ... ng of that record will not proceed if the callback returns False. For instance, to filter out UnreadablePost ... if isinstance ( exc_value , UnreadablePostError ): return False return True and then add it to your logging ...
https://man.plustar.jp/django/ref/logging.html - [similar]
Porting your apps from Django 0.96 to 1.0 — Django 4.0.6 ドキュメント 4919
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... 'first_name' , 'last_name' ] def __str__ ( self ): return ' %s %s ' % ( self . first_name , self . last_name ... ield ( max_length = 60 ) def __unicode__ ( self ): return u ' %s %s ' % ( self . first_name , self . last_na ... es ¶ Different exception from get() ¶ Managers now return a MultipleObjectsReturned exception instead of Ass ... bjects . get ( ... ) except Model . MultipleObjectsReturned : handle_the_error () LazyDate has been fired ¶ ...
https://man.plustar.jp/django/releases/1.0-porting-guide.html - [similar]
Generic display ビュー — Django 4.0.6 ドキュメント 4887
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ** kwargs ) context [ 'now' ] = timezone . now () return context 例 myapp/urls.py : from django.urls import ... ** kwargs ) context [ 'now' ] = timezone . now () return context 例 myapp/urls.py : from django.urls import ...
https://man.plustar.jp/django/ref/class-based-views/generic-display.html - [similar]
PREV 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 NEXT