per page, with , order by , clip by
Results of 1 - 10 of about 65 for label (0.008 sec.)
フォーム API 13999
フォーム API このドキュメントについて このドキュメントでは、Django のフォーム API の詳細について説明します。このドキュメントを読む前に フォームについての概要 を読むことをおすすめします。 バインドされた (bound) フォームとバインドされていない ... ンスを変更することで、フォーム内でのフィールドの表示方法を変更できます。 >>> f . as_div () . split ( "</div>" )[ 0 ] '<div><label for="id_subject">Subject:</label><input type="text" name="subject" maxlength="100" required id="id_subject">' >>> f [ "sub ... ject" ] . label = "Topic" >>> f . as_div () . split ( "</div>" )[ 0 ] '<div><label for="id_subject">Topic:</label><input type="text" name= ... 変更は、同じPythonプロセス内のすべての後続の ContactForm インスタンスに影響を与えます。 >>> f . base_fields [ "subject" ] . label_suffix = "?" >>> another_f = ContactForm ( auto_id = False ) >>> another_f . as_div () . split ( "</div>" )[ 0 ] '<div><la ...
https://man.mtool.work/django/6.1/ref/forms/api.html
フォームセット (Formset) 12152
フォームセット (Formset) class BaseFormSet [ソース] フォームセットは、同じページで複数のフォームを扱うための抽象レイヤーです。データグリッドに例えるとわかりやすいでしょう。次のようなフォームがあるとしましょう: >>> from django import forms > ... 常のフォームと同じように表示できます: >>> formset = ArticleFormSet () >>> for form in formset : ... print ( form ) ... <div><label for="id_form-0-title">Title:</label><input type="text" name="form-0-title" id="id_form-0-title"></div> <div><label for="id ... _form-0-pub_date">Pub date:</label><input type="text" name="form-0-pub_date" id="id_form-0-pub_date"></div> 見てのとおり、空のフォームがひとつだけ表示されまし ... e" , ... "pub_date" : datetime . date . today (), ... } ... ] ... ) >>> for form in formset : ... print ( form ) ... <div><label for="id_form-0-title">Title:</label><input type="text" name="form-0-title" value="Django is now open source" id="id_form-0 ...
https://man.mtool.work/django/6.1/topics/forms/formsets.html
ウィジェット 10893
ウィジェット ウィジェットは、Django が HTML の input 要素の表現方法です。ウィジェットは、HTML のレンダリングをコントロールして、ウィジェットに合致する GET/POST ディクショナリからデータを取り出します。 Built-in widgets によって作られる HTML ... e="text" name="comment" size="40" required></div> attrs を使った HTML の id をセットすることもできます。 BoundField.id_for_label で例を参照してください。 ウィジェットのクラスにスタイルを設定する ウィジェットとともに、アセット ( css や javascript ) 、お ... name の値。 Widget のサブクラスは、このメソッドをオーバーライドすることで、カスタムのコンテキスト値を提供できます。 id_for_label ( id_ ) [ソース] このウィジェットのHTML ID属性を返します。これは、フィールドのIDをもとにして <label> によって使用されます。 ... して RadioSelect を使用するフィールド beatles を持つフォーム myform を例にとると: < fieldset > < legend > {{ myform.beatles.label }} </ legend > {% for radio in myform.beatles %} < div class = "myradio" > {{ radio }} </ div > {% endfor %} </ fieldset > ...
https://man.mtool.work/django/6.1/ref/forms/widgets.html
フォームを使う 10664
フォームを使う このドキュメントについて このドキュメントでは、Web フォームの基本と、それらを Django で扱う方法を紹介しています。より詳しく知りたいときは、フォーム API の特定の領域、 フォーム API 、 フォーム フィールド または フォームとフィー ... 取得するために、ウェブサイトで簡単なフォームを作ることを考えてみましょう: < form action = "/your-name/" method = "post" > < label for = "your_name" > Your name: </ label > < input id = "your_name" type = "text" name = "your_name" value = " {{ current_n ... ート地点は以下の通りです: forms.py from django import forms class NameForm ( forms . Form ): your_name = forms . CharField ( label = "Your name" , max_length = 100 ) これは、単一のフィールド ( your_name ) で Form クラスを定義します。人間が読みやすいラベ ... ルをフィールドに適用してあり、このラベルはレンダリングされたときに <label> の中に表示されます (このケースでは、仮にラベルの指定を省略したとしても、実際には指定した label が自動的に生成されるラベル ...
https://man.mtool.work/django/6.1/topics/forms/
フォーム フィールド 10091
フォーム フィールド class Field [ソース] Form クラスを作成時の一番重要な部分は、form のフィールド (field) の定義です。各フィールドにはカスタムの検証ロジックがあり、他にいくつかのフックもあります。 Field. clean ( value ) [ソース] Field クラス ... uired 属性が含まれていません。これは、フォームセットの追加や削除を行う際にブラウザの検証が正しくない可能性があるためです。 label Field. label label 属性は、フィールドに対する "人が読みやすい" ラベルを指定します。このラベルは Field が Form 内で表示され ... るときに使用されます。 As explained in フォームをHTMLとしてアウトプットする , the default label for a Field is generated from the field name by converting all underscores to spaces and upper-casing the first letter. Sp ... ecify a string for label if that default behavior doesn't result in an adequate label. Use an empty string ( "" ) to hide the label. 以下は、2 つの ...
https://man.mtool.work/django/6.1/ref/forms/fields.html
システムチェックフレームワーク 8502
システムチェックフレームワーク システムチェックフレームワークは、Django プロジェクトを検証するための静的チェックのセットです。一般的な問題を検出し、それらを修正するヒントを提供します。このフレームワークは拡張性があり、独自のチェックを簡単に ... ージを報告するときに使用され、その結果はメッセージの前に置かれます。 id オプションの文字列。issueの一意な識別子。識別子は applabel.X001 というパターンに従うべきです。ここで X はメッセージの重大度を示す文字 CEWID のいずれかです(クリティカルは C 、エラー ... していますが、そのモデルはインストールされていないか、抽象です。 fields.E301 : フィールドは、スワップアウトされたモデル <app_label>.<model> とのリレーションを定義しています。 fields.E302 : <app_label>.<model>.<field name> の逆アクセサ <related model>.<a ... ccessor name> はフィールド名 <app_label>.<model>.<field name> と衝突します。 fields.E303 : <app_label>.<model>.<field name> の逆引きクエリ名が <app_label>.<model> ...
https://man.mtool.work/django/6.1/ref/checks.html
モデルの Meta オプション 8416
モデルの Meta オプション このドキュメントでは、モデル内部の class Meta 内でモデルに与えられる、すべての可能な メタデータオプション を説明します。 利用可能な Meta オプション abstract Options. abstract abstract = True の場合、このモデルは 抽象 ... 基底クラス になります。 app_label Options. app_label モデルが INSTALLED_APPS でアプリケーションの外部で定義されている場合、どのアプリケーションに属するかを宣 ... 言する必要があります: app_label = "myapp" モデルを app_label.object_name または app_label.model_name という形式で表現したい場合は、それぞれ model._meta.la ... bel または model._meta.label_lower を使用します。 base_manager_name Options. base_manager_name モデルの _base_manager に使用するマネージャの属性名、例え ...
https://man.mtool.work/django/6.1/ref/models/options.html
Unit tests 8373
Unit tests Django comes with a test suite of its own, in the tests directory of the code base. It's our policy to make sure all tests pass at all times. We appreciate any and all contributions to the test suite! The Django tests all use the ... he --reverse option doesn't impact on --start-at or --start-after options. Moreover these options cannot be used with test labels. Running the Selenium tests Some tests require Selenium and a web browser. To run these tests, you must install the selen ... air basic.tests.ModelTest.test_eq ...\> runtests.py --pair basic.tests.ModelTest.test_eq will pair test_eq with every test label. With both --bisect and --pair , if you already suspect which cases might be responsible for the failure, you may limit te ... sts to be cross-analyzed by specifying further test labels after the first one: /  $ ./runtests.py --pair basic.tests.ModelTest.test_eq queries transactions ...\> runtests.py -- ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/unit-tests...
django-admin と manage.py 8144
django-admin と manage.py django-admin は Django の管理タスクのためのコマンドラインユーティリティです。このドキュメントでは、その機能の全体を一通り説明します。 さらに、 manage.py は各 Django プロジェクト内に自動的に作成されます。 jango-admi ... nity Ecosystem page. The Django Packages Developer Tools grid has even more options for you! check django-admin check [app_label [app_label ...]] システムチェック フレームワーク を使用して、Django プロジェクト全体のよくある問題を検査します。 デフォルト ... の設定はマイナス記号が前に付き、その後にプラス記号が前についた変更された設定が続きます。 dumpdata django-admin dumpdata [app_label[.ModelName] [app_label[.ModelName] ...]] 名前を指定したアプリケーションと関連するデータベースの中のすべてのデータを、標準出 ... デントのスペースの数を指定します。デフォルトは None で、全てのデータを1行で表示します。 --exclude EXCLUDE , -e EXCLUDE ( app_label.ModelName の形式で指定された) 特定のアプリケーションやモデルがダンプされるのを防ぎます。モデル名を指定した場合には、アプリ ...
https://man.mtool.work/django/6.1/ref/django-admin.html
Django 1.6 リリースノート 7829
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 ... ). With test discovery, tests can be located in any module whose name matches the pattern test*.py . In addition, the test labels provided to ./manage.py test to nominate specific tests to run must now be full Python dotted paths (or directory paths), ... rather than applabel.TestCase.test_method_name pseudo-paths. This allows running tests located anywhere in your codebase, rather than only in I ... Meta options. Fields included in the localized_fields list will be localized (by setting localize on the form field). The labels , help_texts and error_messages options may be used to customize the default fields, see デフォルトのフィールドをオーバラ ...
https://man.mtool.work/django/6.1/releases/1.6.html
PREV 1 2 3 4 5 6 7 NEXT