検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 123 for context (0.032 sec.)
The Django template language: for Python programmers — Django 4.0.6 ドキュメン... 10981
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... nguage . It assumes an understanding of templates, contexts, variables, tags, and rendering. Start with the i ... e into a Template . You render the template with a Context . Django projects generally rely on the high level ... evious step has a render() method which marshals a context and possibly a request into a Context and delegate ... . class Engine ( dirs = None , app_dirs = False , context_processors = None , debug = False , loaders = None ...
https://man.plustar.jp/django/ref/templates/api.html - [similar]
asgiref.sync — Django 4.0.6 ドキュメント 10648
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... nc のソースコード import asyncio.coroutines import contextvars import functools import inspect import os impo ... readExecutor from .local import Local def _restore_context ( context ): # Check for changes in contextvars, a ... nd set them to the current # context for downstream consumers for cvar in context : try ... : if cvar . get () != context . get ( cvar ): cvar . set ( context . get ( cvar ...
https://man.plustar.jp/django/_modules/asgiref/sync.html - [similar]
クラスベース汎用ビュー - フラットインデックス — Django 4.0.6 ドキュメント 10315
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ew ¶ 属性 (と省略可能な継承元): content_type extra_context http_method_names response_class [ render_to_respo ... _names() ] メソッド as_view() dispatch() get() get_context_data() head() http_method_not_allowed() render_to_ ... tailView ¶ 属性 (と省略可能な継承元): content_type context_object_name [ get_context_object_name() ] extra_co ... ame_suffix メソッド as_view() dispatch() get() get_context_data() get_object() head() http_method_not_allowed ...
https://man.plustar.jp/django/ref/class-based-views/flattened-index.html - [similar]
How to create custom template tags and filters — Django 4.0.6 ドキュメント 10043
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... utput through conditional_escape() if the template context is in autoescape mode, to ensure correct HTML and ... ストにアクセスしたい場合、タグを登録する際に``takes_context``引数を使うことでできるようになります。 @register ... . simple_tag ( takes_context = True ) def current_time ( context , format_strin ... g ): timezone = context [ 'timezone' ] return your_get_current_time_method ...
https://man.plustar.jp/django/howto/custom-template-tags.html - [similar]
Simple mixins — Django 4.0.6 ドキュメント 9870
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... | Modules « previous | up | next » Simple mixins ¶ ContextMixin ¶ class django.views.generic.base. ContextMix ... in ¶ 属性 extra_context ¶ A dictionary to include in the context. This is ... a convenient way of specifying some context in as_view() . Example usage: from django.views.ge ... import TemplateView TemplateView . as_view ( extra_context = { 'title' : 'Custom Title' }) メソッド get_conte ...
https://man.plustar.jp/django/ref/class-based-views/mixins-simple.html - [similar]
クラスベースのビューでミックスインを使用する — Django 4.0.6 ドキュメント 9401
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... lexible defaults when dealing with actual objects. ContextMixin Every built in view which needs context data, ... ding TemplateResponseMixin above), should call get_context_data() passing any data they want to ensure is in ... there as keyword arguments. get_context_data() returns a dictionary; in ContextMixin it re ... bers to the dictionary. You can also use the extra_context attribute. Django の一般的なクラスベースのビューを ...
https://man.plustar.jp/django/topics/class-based-views/mixins.html - [similar]
The form rendering API — Django 4.0.6 ドキュメント 9204
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... m renderers must implement a render(template_name, context, request=None) method. It should return a rendered ... ustomizations from your TEMPLATES setting, such as context processors for example, use the TemplatesSetting r ... form templates your project needs can be located. Context available in formset templates ¶ New in Django 4.0 ... . Formset templates receive a context from BaseFormSet.get_context() . By default, forms ...
https://man.plustar.jp/django/ref/forms/renderers.html - [similar]
TemplateResponse and SimpleTemplateResponse — Django 4.0.6 ドキュメント 9093
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... late that is used, or put additional data into the context. TemplateResponse provides a way to do just that. ... nse objects retain the details of the template and context that was provided by the view to compute the respo ... html', 'path/to/bar.html'] SimpleTemplateResponse. context_data ¶ The context data to be used when rendering ... e response content, using the current template and context data. SimpleTemplateResponse. is_rendered ¶ A bool ...
https://man.plustar.jp/django/ref/template-response.html - [similar]
Database instrumentation — Django 4.0.6 ドキュメント 9031
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... e middleware do. Installing a wrapper is done in a context manager -- so the wrappers are temporary and speci ... o.shortcuts import render def my_view ( request ): context = { ... } # Code to generate context with all data ... ocker ): return render ( request , template_name , context ) The parameters sent to the wrappers are: execute ... of values, or a sequence of sequences of values). context -- a dictionary with further data about the contex ...
https://man.plustar.jp/django/topics/db/instrumentation.html - [similar]
テンプレート — Django 4.0.6 ドキュメント 8488
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... きます。 変数 ¶ A variable outputs a value from the context, which is a dict-like object mapping keys to value ... name }} . My last name is {{ last_name }} . With a context of {'first_name': 'John', 'last_name': 'Doe'} , th ... . They look like this: {{ django | title }} With a context of {'django': 'the web framework for perfectionist ... ommon template API. コンテキスト ¶ django.template.Context holds some metadata in addition to the context dat ...
https://man.plustar.jp/django/topics/templates.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 NEXT