検索

phrase: max: clip:
target: order:
Results of 21 - 30 of about 68 for render (0.051 sec.)
はじめての Django アプリ作成、その 4 — Django 4.0.6 ドキュメント 7077
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... t from django.shortcuts import get_object_or_404 , render from django.urls import reverse from .models impor ... st ): # Redisplay the question voting form. return render ( request , 'polls/detail.html' , { 'question' : q ... ¶ from django.shortcuts import get_object_or_404 , render def results ( request , question_id ): question = ... ject_or_404 ( Question , pk = question_id ) return render ( request , 'polls/results.html' , { 'question' : ...
https://man.plustar.jp/django/intro/tutorial04.html - [similar]
Django 1.4 documentation 7006
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... objects . filter ( pub_date__year = year ) return render_to_response ( 'news/year_archive.html' , { 'year' ... : latest_poll_list , }) return HttpResponse ( t . render ( c )) このコードは “polls/index.html” とい名前のテ ... ます。リンクは詳細ページを指します。 ショートカット: render_to_response() ¶ テンプレートをロードしてコンテキス ... 書き換えてみ ましょう: from django.shortcuts import render_to_response from polls.models import Poll def inde ...
https://man.plustar.jp/django/contents.html - [similar]
クロスサイトリクエストフォージェリ (CSRF) 対策 — Django 4.0.6 ドキュメント 7006
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... がレスポンスをレンダリングするようにしてください。 render() 、汎用ビューもしくは contrib アプリケーションを使 ... 使い方は以下の通りです: from django.shortcuts import render from django.views.decorators.csrf import csrf_prot ... otect def my_view ( request ): c = {} # ... return render ( request , "a_template.html" , c ) クラスベースの ... ming request. 実装例: from django.shortcuts import render from django.views.decorators.csrf import requires_ ...
https://man.plustar.jp/django/ref/csrf.html - [similar]
Simple mixins — Django 4.0.6 ドキュメント 6949
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... s. For more information, read the documentation on rendering a template context . TemplateResponseMixin ¶ cl ... ponse_class ¶ The response class to be returned by render_to_response method. Default is TemplateResponse . ... -- meaning that Django uses 'text/html' . メソッド render_to_response ( context , ** response_kwargs ) ¶ Ret ... eturns a list of template names to search for when rendering the template. The first template that is found ...
https://man.plustar.jp/django/ref/class-based-views/mixins-simple.html - [similar]
Django 1.11 リリースノート — Django 4.0.6 ドキュメント 6892
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... システムを使って行われるようになりました。 The form rendering API を参照してください。 いくつかの 後方互換性の ... gets and the admin's OpenLayersWidget use the form rendering API rather than loader.render_to_string() . If ... widget template, you'll need to be sure your form renderer can locate it. For example, you could use the Te ... mplatesSetting renderer. django.contrib.staticfiles ¶ collectstatic may ...
https://man.plustar.jp/django/releases/1.11.html - [similar]
Database instrumentation — Django 4.0.6 ドキュメント 6892
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... e.g. to make sure that no queries are issued while rendering a template with prefetched data). The wrappers ... .db import connection from django.shortcuts import render def my_view ( request ): context = { ... } # Code ... h connection . execute_wrapper ( blocker ): return render ( request , template_name , context ) The paramete ...
https://man.plustar.jp/django/topics/db/instrumentation.html - [similar]
The Django admin documentation generator — Django 4.0.6 ドキュメント 6822
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ed for that view. 例: from django.shortcuts import render from myapp.models import MyModel def my_view ( req ... : MyModel . objects . get ( slug = slug )} return render ( request , 'myapp/my_template.html' , context ) T ...
https://man.plustar.jp/django/ref/contrib/admin/admindocs.html - [similar]
Django 4.0 release notes — Django 4.0.6 ドキュメント 6822
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... caching with Redis in Django . Template based form rendering ¶ Forms , Formsets , and ErrorList are now rend ... plate engine to enhance customization. See the new render() , get_context() , and template_name for Form and ... formset rendering for Formset . マイナーな機能 ¶ django.contrib.a ... to use the %(value)s placeholder. BaseFormSet now renders non-form errors with an additional class of nonfo ...
https://man.plustar.jp/django/releases/4.0.html - [similar]
ページネーション — Django 4.0.6 ドキュメント 6765
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ator import Paginator from django.shortcuts import render from myapp.models import Contact def listing ( req ... _obj = paginator . get_page ( page_number ) return render ( request , 'list.html' , { 'page_obj' : page_obj ...
https://man.plustar.jp/django/topics/pagination.html - [similar]
How to implement a custom template backend — Django 4.0.6 ドキュメント 6708
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... self , template ): self . template = template def render ( self , context = None , request = None ): if con ... rf_token_lazy ( request ) return self . template . render ( context ) 詳しい情報は DEP 182 を参照してください ... attribute on exceptions raised during parsing and rendering. This attribute is a dict with the following va ...
https://man.plustar.jp/django/howto/custom-template-backend.html - [similar]
PREV 1 2 3 4 5 6 7 NEXT