per page, with , order by , clip by
Results of 1 - 10 of about 15 for whole (0.004 sec.)
Contributing code 13497
Contributing code So you'd like to write some code, documentation or tests to improve Django? There are several ways you can help Django's development. Tutorials The Django tutorial contains a whole section that walks you step-by-step throu ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/
Django 1.8 リリースノート 11303
Django 1.8 リリースノート April 1, 2015 Django 1.8 へようこそ! このリリースノートでは、 バージョン 1.8 の新機能 と、Django 1.7 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機能 ... run these tests but won't benefit from the improvements. Tests are now run within two nested atomic() blocks: one for the whole class and one for each test. The class method TestCase.setUpTestData() adds the ability to set up test data at the class l ... hnique can speed up the tests as compared to using setUp() . Fixture loading within TestCase is now performed once for the whole TestCase . マイナーな機能 django.contrib.admin ModelAdmin now has a has_module_permission() method to allow limiting acces ... from these methods are now executed within the method's transaction and any exception in a signal handler will prevent the whole operation. Assigning unsaved objects to relations raises an error 注釈 To more easily allow in-memory usage of models, thi ...
https://man.mtool.work/django/6.1/releases/1.8.html
Fetch modes 10745
Fetch modes New in Django 6.1. When accessing model fields that were not loaded as part of the original query, Django will fetch that field's data from the database. You can customize the behavior of this fetching with a fetch mode , making ... (汎用リレーション) Django copies the fetch mode of an instance to any related objects it fetches, so the mode applies to a whole tree of relationships, not just the top-level model in the initial QuerySet . This copying is also done in related manager ...
https://man.mtool.work/django/6.1/topics/db/fetch-modes.html
URLconf で使用するための django.urls 関数 9108
URLconf で使用するための django.urls 関数 path() path ( route , view , kwargs = None , name = None ) urlpatterns に含める要素を返します。例えば: from django.urls import include , path urlpatterns = [ path ( "index/" , views . index , name = ... ositional arguments otherwise. The values are passed as strings, without any type conversion. When a route ends with $ the whole requested URL, matching against path_info , must match the regular expression pattern ( re.fullmatch() is used). The view ...
https://man.mtool.work/django/6.1/ref/urls.html
バリデータ (Validator) 8551
バリデータ (Validator) バリデータを記述する バリデータ (validator) は呼び出し可能なオブジェクトで、値を受け取り、ある基準を満たしていない場合に ValidationError を発生させます。バリデータは異なるタイプのフィールド間でバリデーションロジックを ... _places より大きい場合は 'max_decimal_places' 。 整数部の桁数が max_digits と decimal_places の差よりも大きい場合は、 'max_whole_digits' 。 FileExtensionValidator class FileExtensionValidator ( allowed_extensions , message , code ) [ソース] value.name ...
https://man.mtool.work/django/6.1/ref/validators.html
Django 2.2 リリースノート 8551
Django 2.2 リリースノート April 1, 2019 Django 2.2 へようこそ! このリリースノートでは、 バージョン 2.2 の新機能 と、Django 2.1 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。また、 一部の機能を非推奨 とし ... ng of the test, but this prevents the test --keepdb option from working properly (the database was empty at the end of the whole test suite). This change shouldn't have an impact on your tests unless you've customized TransactionTestCase 's internals. ...
https://man.mtool.work/django/6.1/releases/2.2.html
Unit tests 8011
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 ... aving to retype them. Tests that only fail in combination In case a test passes when run in isolation but fails within the whole suite, we have some tools to help analyze the problem. The --bisect option of runtests.py will run the failing test while ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/unit-tests...
Django の概要 8011
Django の概要 Django は変転の激しいニュースルーム環境で開発された経緯から、よくある Web 開発タスクを迅速かつ簡単化するように設計されています。ここでは Django による データベースを使った Web アプリケーション開発をざっと見てみましょう。 このド ... _name = "Billy Goat" >>> r . save () # Delete an object with delete(). >>> r . delete () 作業場 (scaffold) ではなく完成品 (whole house) の、動的な admin インタフェース モデルが定義されると、Django は自動的にプロ仕様の本番仕様の 管理インターフェース -- ...
https://man.mtool.work/django/6.1/intro/overview.html
フォーム フィールド 8011
フォーム フィールド class Field [ソース] Form クラスを作成時の一番重要な部分は、form のフィールド (field) の定義です。各フィールドにはカスタムの検証ロジックがあり、他にいくつかのフックもあります。 Field. clean ( value ) [ソース] Field クラス ... は無視されます。 エラーメッセージのキー: required , invalid , max_value , min_value , max_digits , max_decimal_places , max_whole_digits , step_size 。 max_value および min_value のエラーメッセージには %(limit_value)s が含まれる場合があり、これは適切な ... 制限値に置き換えられます。同様に、 max_digits 、 max_decimal_places 、および max_whole_digits のエラーメッセージには %(max)s が含まれる場合があります。 5つのオプション引数を受け取ります: max_value min_value こ ...
https://man.mtool.work/django/6.1/ref/forms/fields.html
非同期サポート 8011
非同期サポート Django has support for writing asynchronous ("async") views, along with an entirely async-enabled request stack if you are running under ASGI . Async views will still work under WSGI, but with a small per-request adaptation c ... a single sync_to_async() (or async_to_sync() ) crossing. The per-call cost of the context switch is then spread across the whole loop and effectively disappears. The same per-call adaptation cost applies to middleware. Django will attempt to minimize ...
https://man.mtool.work/django/6.1/topics/async.html
PREV 1 2 NEXT