検索

phrase: max: clip:
target: order:
Results of 11 - 20 of about 123 for context (0.050 sec.)
Generic display ビュー — Django 4.0.6 ドキュメント 8390
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ) get_slug_field() get_queryset() get_object() get_context_object_name() get_context_data() get() render_to_r ... DetailView ( DetailView ): model = Article def get_context_data ( self , ** kwargs ): context = super () . ge ... t_context_data ( ** kwargs ) context [ 'now' ] = timezone . ... now () return context 例 myapp/urls.py : from django.urls import path fr ...
https://man.plustar.jp/django/ref/class-based-views/generic-display.html - [similar]
Django 1.8 リリースノート — Django 4.0.6 ドキュメント 8118
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... dminSite.password_change() method now has an extra_context parameter. You can now control who may login to th ... ols which contains the user-specific header. A new context variable has_permission , which gets its value fro ... a table. E メール ¶ Email backends now support the context manager protocol for opening and closing connectio ... tionary. The now tag can now store its output in a context variable with the usual syntax: {% now 'j n Y' as ...
https://man.plustar.jp/django/releases/1.8.html - [similar]
Djangoの認証システムを使用する — Django 4.0.6 ドキュメント 7785
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... entication. Defaults to AuthenticationForm . extra_context ¶ A dictionary of context data that will be added ... to the default context data passed to the template. redirect_authenticate ... y default. This template gets passed four template context variables: form : A Form object representing the A ... ge URL if the given GET parameter is passed. extra_context ¶ A dictionary of context data that will be added ...
https://man.plustar.jp/django/topics/auth/default.html - [similar]
Django 1.3 release notes — Django 4.0.6 ドキュメント 7612
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ny of the nice new unittest2 features. Transaction context managers ¶ Users of Python 2.5 and above may now u ... se transaction management functions as context managers. For example: with transaction . autocomm ... more information, see the on_delete documentation. Contextual markers and comments for translatable strings ¶ ... u can now use the pgettext function to specify the context of the string. And if you just want to add some in ...
https://man.plustar.jp/django/releases/1.3.html - [similar]
ビルトインのクラスベースのジェネリックビュー — Django 4.0.6 ドキュメント 7612
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... することもできます。次のように、ジェネリックビューの context_object_name 属性を設定すると、コンテキスト変数の名 ... PublisherListView ( ListView ): model = Publisher context_object_name = 'my_favorite_publishers' 分かりやすい ... context_object_name を設定するのはいつでも良い考えです。テ ... いですか? 答えは、 DetailView をサブクラス化し、get_context_dataメソッドの独自の実装を提供することです。デフォ ...
https://man.plustar.jp/django/topics/class-based-views/generic-display.html - [similar]
Single object mixins — Django 4.0.6 ドキュメント 7514
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... 前です。デフォルトでは、 pk_url_kwarg は 'pk' です。 context_object_name ¶ Designates the name of the variable ... to use in the context. query_pk_and_slug ¶ True の場合、 get_object() が ... ャーの all() を呼んで QuerySet を組み立てます。 get_context_object_name ( obj ) ¶ ビューが操作するデータを格納 ... するために使われる、コンテクストの変数名を返します。 context_object_name がセットされていない場合、コンテクスト ...
https://man.plustar.jp/django/ref/class-based-views/mixins-single-object.html - [similar]
Multiple object mixins — Django 4.0.6 ドキュメント 7106
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... エラーとなります。 Extends django.views.generic.base.ContextMixin メソッドと属性 allow_empty ¶ 有効なオブジェク ... to provide an implementation for get_paginator() . context_object_name ¶ Designates the name of the variable ... to use in the context. get_queryset () ¶ このビューのための項目のリストを ... ying an empty page. By default, this is True . get_context_object_name ( object_list ) ¶ このビューが操作して ...
https://man.plustar.jp/django/ref/class-based-views/mixins-multiple-object.html - [similar]
Django Deprecation Timeline — Django 4.0.6 ドキュメント 7045
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... lt sitemap protocol for sitemaps built outside the context of a request will change from 'http' to 'https' . ... uest.xreadlines() will be removed. Support for the context argument of Field.from_db_value() and Expression.c ... ssword_reset_complete() will be removed. The extra_context parameter of contrib.auth.views.logout_then_login( ... th historical migrations. Support for the template Context.has_key() method will be removed. Support for the ...
https://man.plustar.jp/django/internals/deprecation.html - [similar]
How to implement a custom template backend — Django 4.0.6 ドキュメント 6872
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ): self . template = template def render ( self , context = None , request = None ): if context is None : co ... ntext = {} if request is not None : context [ 'request' ] = request context [ 'csrf_input' ] = ... csrf_input_lazy ( request ) context [ 'csrf_token' ] = csrf_token_lazy ( request ) ret ... urn self . template . render ( context ) 詳しい情報は DEP 182 を参照してください。 カスタ ...
https://man.plustar.jp/django/howto/custom-template-backend.html - [similar]
The syndication feed framework — Django 4.0.6 ドキュメント 6798
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... his if you want to generate feeds outside of a web context, or in some other lower-level way. The high-level ... rendered for each item and are passed two template context variables: {{ obj }} -- The current object (one of ... below that uses a description template. Feed. get_context_data ( ** kwargs ) ¶ There is also a way to pass a ... before. You can provide your implementation of get_context_data method in your Feed subclass. For example: fr ...
https://man.plustar.jp/django/ref/contrib/syndication.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 11 NEXT