per page, with , order by , clip by
Results of 1 - 10 of about 22 for suffix (0.006 sec.)
クラスベースのジェネリックビュー: フラットインデックス 14039
クラスベースのジェネリックビュー: フラットインデックス この索引は、クラスベースビューのリファレンス文書を、異なる観点から編成したものです。ビューごとに、クラスツリーの有効な属性とメソッドが表されます。動作を定義するクラスの観点から編集された ... get_slug_field() ] slug_url_kwarg template_engine template_name [ get_template_names() ] template_name_field template_name_suffix メソッド as_view() dispatch() get() get_context_data() get_object() head() http_method_not_allowed() render_to_response() ... _queryset() ] response_class [ render_to_response() ] template_engine template_name [ get_template_names() ] template_name_suffix メソッド as_view() dispatch() get() get_context_data() get_paginator() head() http_method_not_allowed() paginate_queryset( ... success_url [ get_success_url() ] template_engine template_name [ get_template_names() ] template_name_field template_name_suffix メソッド as_view() dispatch() form_invalid() form_valid() get() get_context_data() get_form() get_form_kwargs() get_object ...
https://man.mtool.work/django/6.1/ref/class-based-views/flattened-index.html
ジェネリック編集ビュー (Generic editing view) 11245
ジェネリック編集ビュー (Generic editing view) 以下のビューは、このページで説明され、内容を編集するための基礎を提供します: django.views.generic.edit.FormView django.views.generic.edit.CreateView django.views.generic.edit.UpdateView django.vi ... neric.detail.SingleObjectMixin django.views.generic.edit.ProcessFormView django.views.generic.base.View 属性 template_name_suffix GET リクエストに描画された CreateView のページは、 '_form' の template_name_suffix を使います。 例えば、この属性をオブジェ ... neric.detail.SingleObjectMixin django.views.generic.edit.ProcessFormView django.views.generic.base.View 属性 template_name_suffix GET リクエストに描画された UpdateView のページは、 '_form' の template_name_suffix を使います。 例えば、この属性をオブジェ ... ew from myapp.models import Author class AuthorUpdateView ( UpdateView ): model = Author fields = [ "name" ] template_name_suffix = "_update_form" 例 myapp/author_update_form.html : < form method = "post" > {% csrf_token %} {{ form.as_p }} < input type ...
https://man.mtool.work/django/6.1/ref/class-based-views/generic-editing.html
フォーム API 10403
フォーム API このドキュメントについて このドキュメントでは、Django のフォーム API の詳細について説明します。このドキュメントを読む前に フォームについての概要 を読むことをおすすめします。 バインドされた (bound) フォームとバインドされていない ... 、同じPythonプロセス内のすべての後続の ContactForm インスタンスに影響を与えます。 >>> f . base_fields [ "subject" ] . label_suffix = "?" >>> another_f = ContactForm ( auto_id = False ) >>> another_f . as_div () . split ( "</div>" )[ 0 ] '<div><label for ... リは auto_id が True の場合と同様に動作します。 デフォルトでは、 auto_id は文字列 'id_%s' がセットされています。 Form. label_suffix フォームをレンダリングする際、すべてのラベル名の後ろにつけられる翻訳可能な文字列の接尾語 (英語ではコロン ( : ) がデフォルト ... ) です。 その文字をカスタマイズしたり、完全に省略したりすることも、 label_suffix パラメータを使用して可能です。 >>> f = ContactForm ( auto_id = "id_for_ %s " , label_suffix = "" ) >>> print ( f ) <div><l ...
https://man.mtool.work/django/6.1/ref/forms/api.html
ジェネリック日付ビュー 10269
ジェネリック日付ビュー 日付ベースのジェネリックビュー ( django.views.generic.dates 内で提供されています) は、日付ベースのデータのために、ドリルダウンページを描画するためのビューです。 注釈 このページの例のいくつかは、 myapp/models.py 内で下 ... 順で表示されます。 ノート デフォルトの context_object_name として latest を使います。 デフォルトの _archive の template_name_suffix を使います。 年によって date_list を提供する動作がデフォルトですが、 date_list_period 属性を用いた月や日に変更できます。こ ... ブジェクト。 previous_year : date オブジェクト。 allow_empty と allow_future に従います。 ノート デフォルトの template_name_suffix は _archive_year です。 例 myapp/views.py : from django.views.generic.dates import YearArchiveView from myapp.models impor ... s_month : allow_empty と allow_future に従って、前月の最初の日を表す date オブジェクト。 ノート デフォルトの template_name_suffix は _archive_month です。 例 myapp/views.py : from django.views.generic.dates import MonthArchiveView from myapp.models imp ...
https://man.mtool.work/django/6.1/ref/class-based-views/generic-date-based.html
Django 1.9.2 リリースノート 9006
Django 1.9.2 リリースノート February 1, 2016 Django 1.9.2 fixes a security regression in 1.9 and several bugs in 1.9.1. It also makes a small backwards incompatible change that hopefully doesn't affect any users. Security issue: User with " ... ax. This causes difficulties for packaging systems that unconditionally byte-compile *.py files. To remedy this, a .py-tpl suffix is now used for the project and app template files included in Django. The .py-tpl suffix is replaced with .py by the star ...
https://man.mtool.work/django/6.1/releases/1.9.2.html
Django 1.6 リリースノート 8585
Django 1.6 リリースノート 注釈 Dedicated to Malcolm Tredinnick On March 17, 2013, the Django project and the free software community lost a very dear friend and developer. Malcolm was a long-time contributor to Django, a model community mem ... he fetched rows to Model objects lazily by using the iterator() method. BoundField.label_tag now includes the form's label_suffix This is consistent with how methods like Form.as_p and Form.as_ul render labels. If you manually render label_tag in your ... ield" type = "text" name = "my_field" /> If you want to keep the current behavior of rendering label_tag without the label_suffix , instantiate the form label_suffix='' . You can also customize the label_suffix on a per-field basis using the new label_ ...
https://man.mtool.work/django/6.1/releases/1.6.html
Django 1.8 リリースノート 8585
Django 1.8 リリースノート April 1, 2015 Django 1.8 へようこそ! このリリースノートでは、 バージョン 1.8 の新機能 と、Django 1.7 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機能 ... constraints. Filenames exceeding this argument will get truncated. This prevents a database error when appending a unique suffix to a long filename that already exists on the storage. See the deprecation note about adding this argument to your custom ... > ) now includes nonfield in its list of classes to distinguish them from field-specific errors. Field now accepts a label_suffix argument, which will override the form's label_suffix . This enables customizing the suffix on a per-field basis — previou ... sly it wasn't possible to override a form's label_suffix while using shortcuts such as {{ form.as_p }} in templates. SelectDateWidget now accepts an empty_label argument, which wi ...
https://man.mtool.work/django/6.1/releases/1.8.html
フォーム フィールド 8316
フォーム フィールド class Field [ソース] Form クラスを作成時の一番重要な部分は、form のフィールド (field) の定義です。各フィールドにはカスタムの検証ロジックがあり、他にいくつかのフックもあります。 Field. clean ( value ) [ソース] Field クラス ... <div>Your website:<input type="url" name="url"></div> <div>Comment:<input type="text" name="comment" required></div> label_suffix Field. label_suffix label_suffix 引数を使用すると、フォームの label_suffix をフィールドごとに上書きできます。 >>> class Co ... IntegerField () ... nationality = forms . CharField () ... captcha_answer = forms . IntegerField ( label = "2 + 2" , label_suffix = " =" ) ... >>> f = ContactForm ( label_suffix = "?" ) >>> print ( f ) <div><label for="id_age">Age?</label><input type=" ...
https://man.mtool.work/django/6.1/ref/forms/fields.html
単一オブジェクト ミックスイン (Single object mixin) 8181
単一オブジェクト ミックスイン (Single object mixin) SingleObjectMixin class django.views.generic.detail. SingleObjectMixin 現在の HTTP レスポンスに紐付いたオブジェクトをルックアップするための枠組みを提供します。 メソッドと属性 model このビュ ... スの template_name_field の値のいずれかが None の場合、オブジェクトはテンプレート名候補として使用されません。 template_name_suffix 自動生成されたテンプレート名候補に追加する接尾辞です。 デフォルトの接尾辞は _detail です。 get_template_names () 候補となる ... (有効な場合) ビューが操作するオブジェクトインスタンス上の template_name_field の内容 <app_label>/<model_name><template_name_suffix>.html ...
https://man.mtool.work/django/6.1/ref/class-based-views/mixins-single-object.htm...
複数オブジェクトミックスイン (Multiple object mixin) 8030
複数オブジェクトミックスイン (Multiple object mixin) MultipleObjectMixin class django.views.generic.list. MultipleObjectMixin オブジェクトのリストを表示するために使用する Mixin です。 paginate_by が指定された場合、Django は結果をページネート ... elf.object_list は QuerySet でも大丈夫で、必須ではありません。 親クラス TemplateResponseMixin メソッドと属性 template_name_suffix 自動生成される候補テンプレート名に付加する接尾辞。デフォルトの接尾辞は _list です。 get_template_names () テンプレート名の ... のリストを返します。以下のリストを返します: ビューの template_name の値 (もしあれば) <app_label>/<model_name><template_name_suffix>.html ...
https://man.mtool.work/django/6.1/ref/class-based-views/mixins-multiple-object.h...
PREV 1 2 3 NEXT