検索

phrase: max: clip:
target: order:
Results of 81 - 90 of about 189 for return (0.075 sec.)
一対一 (one-to-one) 関係 — Django 4.0.6 ドキュメント 5138
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... harField ( max_length = 80 ) def __str__ ( self ): return " %s the place" % self . name class Restaurant ( m ... eanField ( default = False ) def __str__ ( self ): return " %s the restaurant" % self . place . name class W ... harField ( max_length = 50 ) def __str__ ( self ): return " %s the waiter at %s " % ( self . name , self . r ... d related object 'place'. Restaurant.objects.all() returns the Restaurants, not the Places. Note that there ...
https://man.plustar.jp/django/topics/db/examples/one_to_one.html - [similar]
The Django template language: for Python programmers — Django 4.0.6 ドキュメン... 5105
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... such as get_template() for loading templates. They return a django.template.backends.django.Template which w ... lables take a request object as their argument and return a dict of items to be merged into the context. It ... he {% load %} tag. static Engine. get_default () ¶ Returns the underlying Engine from the first configured D ... late_code ) ¶ Compiles the given template code and returns a Template object. Engine. get_template ( templat ...
https://man.plustar.jp/django/ref/templates/api.html - [similar]
ビルトインのクラスベースのジェネリックビュー — Django 4.0.6 ドキュメント 5105
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... eta : ordering = [ "-name" ] def __str__ ( self ): return self . name class Author ( models . Model ): salut ... ad_to = 'author_headshots' ) def __str__ ( self ): return self . name class Book ( models . Model ): title = ... context [ 'book_list' ] = Book . objects . all () return context 注釈 通常、 get_context_data はすべての親ク ... Publisher , name = self . kwargs [ 'publisher' ]) return Book . objects . filter ( publisher = self . publi ...
https://man.plustar.jp/django/topics/class-based-views/generic-display.html - [similar]
How to implement a custom template backend — Django 4.0.6 ドキュメント 5083
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ) def from_string ( self , template_code ): try : return Template ( self . engine . from_string ( template_ ... ) def get_template ( self , template_name ): try : return Template ( self . engine . get_template ( template ... ext [ 'csrf_token' ] = csrf_token_lazy ( request ) return self . template . render ( context ) 詳しい情報は ...
https://man.plustar.jp/django/howto/custom-template-backend.html - [similar]
How to manage error reporting — Django 4.0.6 ドキュメント 5083
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... flags = re . IGNORECASE ) is_active ( request ) ¶ Returns True to activate the filtering in get_post_parame ... G documentation. get_post_parameters ( request ) ¶ Returns the filtered dictionary of POST parameters. Sensi ... traceback_frame_variables ( request , tb_frame ) ¶ Returns the filtered dictionary of local variables for th ... l_template_path ¶ New in Django 3.2. Property that returns a pathlib.Path representing the absolute filesyst ...
https://man.plustar.jp/django/howto/error-reporting.html - [similar]
Django 1.10 リリースノート — Django 4.0.6 ドキュメント 5083
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... supports it, backends can set DatabaseFeatures.can_return_ids_from_bulk_insert=True and implement DatabaseOp ... erations.fetch_returned_insert_ids() to set primary keys on objects crea ... et_created_time() , and get_modified_time() . They return a timezone-aware datetime if USE_TZ is True and a ... language without a URL prefix. set_language() now returns a 204 status code (No Content) for AJAX requests ...
https://man.plustar.jp/django/releases/1.10.html - [similar]
How to create database migrations — Django 4.0.6 ドキュメント 5051
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... schema_editor . connection . alias != 'default' : return # Your migration code goes here class Migration ( ... ame = None , ** hints ): if 'target_db' in hints : return db == hints [ 'target_db' ] return True Then, to l ... xcept LookupError : # The old app isn't installed. return NewModel = apps . get_model ( 'new_app' , 'NewMode ...
https://man.plustar.jp/django/howto/writing-migrations.html - [similar]
はじめての Django アプリ作成、その 5 — Django 4.0.6 ドキュメント 5051
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... re_question ( self ): """ was_published_recently() returns False for questions whose pub_date is in the futu ... blished_recently ( self ): now = timezone . now () return now - datetime . timedelta ( days = 1 ) <= self . ... ld_question ( self ): """ was_published_recently() returns False for questions whose pub_date is older than ... nt_question ( self ): """ was_published_recently() returns True for questions whose pub_date is within the l ...
https://man.plustar.jp/django/intro/tutorial05.html - [similar]
クリックジャッキング対策 — Django 4.0.6 ドキュメント 5051
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ions_exempt def ok_to_load_in_a_frame ( request ): return HttpResponse ( "This page is safe to load in a fra ... gin @xframe_options_deny def view_one ( request ): return HttpResponse ( "I won't display in any frame!" ) @ ... frame_options_sameorigin def view_two ( request ): return HttpResponse ( "Display in a frame if it's from th ...
https://man.plustar.jp/django/ref/clickjacking.html - [similar]
クロスサイトリクエストフォージェリ (CSRF) 対策 — Django 4.0.6 ドキュメント 5051
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... . substring ( name . length + 1 )); break ; } } } return cookieValue ; } const csrftoken = getCookie ( 'csr ... csrf_protect def my_view ( request ): c = {} # ... return render ( request , "a_template.html" , c ) クラスベ ... csrf_exempt @csrf_exempt def my_view ( request ): return HttpResponse ( 'Hello world' ) requires_csrf_token ... s_csrf_token def my_view ( request ): c = {} # ... return render ( request , "a_template.html" , c ) ensure_ ...
https://man.plustar.jp/django/ref/csrf.html - [similar]