検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 44 for register (0.027 sec.)
How to create custom template tags and filters — Django 4.0.6 ドキュメント 13539
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... い。 有効なタグライブラリにするため、モジュールは、 register という名前のモジュールレベルの変数を含む必要があり ... ードを記述してください: from django import template register = template . Library () あるいは、テンプレートタグ ... 、 Library のインスタンスに登録する必要があります。 register . filter ( 'cut' , cut ) register . filter ( 'lowe ... です (文字列としての関数名ではありません)。 代わりに register.filter() をデコレータとして使用できます。 @registe ...
https://man.plustar.jp/django/howto/custom-template-tags.html - [similar]
システムチェックフレームワーク — Django 4.0.6 ドキュメント 13078
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... k function: from django.core.checks import Error , register @register () def example_check ( app_configs , ** ... the class name. Debug Info Warning Error Critical Registering and labeling checks ¶ Lastly, your check functi ... on must be registered explicitly with system check registry. Checks sh ... ould be registered in a file that's loaded when your application is ...
https://man.plustar.jp/django/topics/checks.html - [similar]
django.utils.module_loading — Django 4.0.6 ドキュメント 11941
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... when not present. This forces an import on them to register any admin bits they may want. You may provide a re ... word parameter as a way to access a registry. This register_to object must have a _registry instance variable ... to access it. """ from django.apps import apps register_to = kwargs . get ( "register_to" ) for app_config ... s : # Attempt to import the app's module. try : if register_to : before_import_registry = copy . copy ( regist ...
https://man.plustar.jp/django/_modules/django/utils/module_loading.html - [similar]
Database Functions — Django 4.0.6 ドキュメント 9574
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ld', lookup_name) . Each class is also a Transform registered on DateField and DateTimeField as __(lookup_name ... ld', lookup_name) . Each class is also a Transform registered on DateTimeField as __(lookup_name) , e.g. __min ... ses are all defined as transforms, but they aren't registered with any fields, because the lookup names are al ... sing the built-in SQL truncate function. It's also registered as a transform on DateTimeField as __date . clas ...
https://man.plustar.jp/django/ref/models/database-functions.html - [similar]
How to write custom lookups — Django 4.0.6 ドキュメント 8729
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ために、ルックアップを有効にしたいフィールドクラスの register_lookup を呼び出す必要があります。今回実装したルック ... しょう。 from django.db.models import Field Field . register_lookup ( NotEqual ) ルックアップは、デコレータパタ ... きます。 from django.db.models import Field @Field . register_lookup class NotEqualLookup ( Lookup ): # ... これ ... jango.db.models import IntegerField IntegerField . register_lookup ( AbsoluteValue ) これまでの処理で、クエリを ...
https://man.plustar.jp/django/howto/custom-lookups.html - [similar]
はじめての Django アプリ作成、その 7 — Django 4.0.6 ドキュメント 8498
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ください。 admin フォームのカスタマイズ ¶ admin.site.register(Question) の呼び出しによって Question モデルを登録 ... ィールドの並び順を並べ替えてみましょう。 admin.site.register(Question) の行を以下のように置き換えてみてください ... = [ 'pub_date' , 'question_text' ] admin . site . register ( Question , QuestionAdmin ) このように、モデルの ... は、モデルごとに admin クラスを作成して、 admin.site.register() の 2 番目の引数に渡すと いうパターンに従ってくだ ...
https://man.plustar.jp/django/intro/tutorial07.html - [similar]
Django の admin サイト — Django 4.0.6 ドキュメント 8421
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... in the admin interface. For each of those models, register them with the admin as described in ModelAdmin . 他 ... rAdmin ( admin . ModelAdmin ): pass admin . site . register ( Author , AuthorAdmin ) いつでも ModelAdmin オブジ ... min from myapp.models import Author admin . site . register ( Author ) register デコレータ ¶ register ( * mode ... b import admin from .models import Author @admin . register ( Author ) class AuthorAdmin ( admin . ModelAdmin ...
https://man.plustar.jp/django/ref/contrib/admin/index.html - [similar]
Lookup API reference — Django 4.0.6 ドキュメント 8345
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... tom lookups . The lookup API has two components: a RegisterLookupMixin class that registers lookups, and the Q ... faults to __exact . Registration API ¶ Django uses RegisterLookupMixin to give a class the interface to regist ... ase class of all Django transforms. class lookups. RegisterLookupMixin ¶ A mixin that implements the lookup AP ... I on a class. classmethod register_lookup ( lookup , lookup_name = None ) ¶ Registers ...
https://man.plustar.jp/django/ref/models/lookups.html - [similar]
django.urls functions for use in URLconfs — Django 4.0.6 ドキュメント 7976
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... る and URLの名前空間とインクルードされた URLconfs . register_converter() ¶ register_converter ( converter , typ ... e_name ) ¶ The function for registering a converter for use in path() route s. The conv ... is the converter name to use in path patterns. See Registering custom path converters for an example. django.c ... ons for use in URLconfs path() re_path() include() register_converter() django.conf.urls functions for use in ...
https://man.plustar.jp/django/ref/urls.html - [similar]
TemplateResponse and SimpleTemplateResponse — Django 4.0.6 ドキュメント 7822
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... alogous use cases), TemplateResponse allows you to register callbacks that will be invoked when rendering has ... on that takes a single argument -- response -- and register that function with the template response: from dja ... lateResponse ( request , 'mytemplate.html' , {}) # Register the callback response . add_post_render_callback ( ...
https://man.plustar.jp/django/ref/template-response.html - [similar]
PREV 1 2 3 4 5 NEXT